Использую
* Ubuntu 16
* Python 3.9.0a1 (default, Apr 10 2022, 12:51:41)
[GCC 5.4.0 20160609] on linux
Чтобы запустить скрипт пишу в консоле:
screen -S abc
python3.9 test.py
и выводит ошибку
Traceback (most recent call last):
File "/root/test_.py", line 12, in <module>
from pyqiwip2p import QiwiP2P
File "/usr/local/lib/python3.9/site-packages/pyqiwip2p/__init__.py", line 1, in <module>
from pyqiwip2p.Qiwip2p import QiwiP2P
File "/usr/local/lib/python3.9/site-packages/pyqiwip2p/Qiwip2p.py", line 19, in <module>
class QiwiP2P:
File "/usr/local/lib/python3.9/site-packages/pyqiwip2p/Qiwip2p.py", line 118, in QiwiP2P
pay_sources: list[str] = None,
TypeError: 'type' object is not subscriptable
если запустить через python3.5, то
python3.5 test.py
File "test.py", line 233
print(f"ID: {id} | error: {ex}")
^
SyntaxError: invalid syntax
как запустить через 3.9?