Добрый день.
Использую Python 3.7. Возникла проблема при запуске библиотеки PyBrain в Ubuntu 18.04. Некоторые зависимости, которые нужны для PyBrain установились успешно, но модуль connections не хочет устанавливаться. Вот ошибка, которая появляется:
sergey_gorb@ru:~$ pip install connections
Defaulting to user installation because normal site-packages is not writeable
Collecting connections
Using cached connections-0.1.3.tar.gz (3.7 kB)
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
Traceback (most recent call last):
File “<string>”, line 36, in <module>
File “<pip-setuptools-caller>”, line 34, in <module>
File “/tmp/pip-install-69un0fcv/connections_e65e2ddc07d6416d97a7556bfe372c28/setup.py”, line 4, in <module>
from connections import __version__ as src_version
File “/tmp/pip-install-69un0fcv/connections_e65e2ddc07d6416d97a7556bfe372c28/connections.py”, line 283
except SocketError, e:
^
SyntaxError: invalid syntax
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
Помогите, пожалуйста, решить проблему.