我在OSUbuntu19.04上安装Python3.7.3和Python2.7.16的模块有问题
该模块仅用于Python>=3.5。
研究并没有把我引向太多,或者我找错了地方,或者我误解了错误的全部信息。
我发现最好的方法是避免移除Python 2,以免破坏其他需要它的程序,而且我也没有删除Python 2。如果能提供任何帮助,我们将不胜感激。有关更多信息,请参见下面:
/usr/bin/pythonpip install python-chessCollecting python-chess
Using cached https://files.pythonhosted.org/packages/3d/ed/ae1dbb45de32df04c9b2cdfa1802bd7509978da1ad245b3180276f5937a6/python-chess-0.24.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-oKceEK/python-chess/setup.py", line 35, in <module>
""")
ImportError: You are installing python-chess on Python 2.
Python 2 support has been dropped. Consider upgrading to Python 3, or using
the 0.23.x branch, which will be maintained until the end of 2018.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-oKceEK/python-chess/发布于 2019-05-26 16:32:02
类似于python (python2.7)和python3 (python3.x),有pip (python2.7)和pip3 (python3.x)。
若要安装python3模块,请使用pip3。
https://askubuntu.com/questions/1146243
复制相似问题