通过setup.py依赖关系安装的Python脚本

时间:2019-05-29 14:36:01

标签: python setup.py

我通常不是python用户,但是必须安装用python> 3.6编写的此应用程序,因此请在细节上更加具体。

我像这样通过setup.py安装python应用程序

sudo python3 setup.py install

在安装结束时,它会打印出以下内容:

...
Processing dependencies for gasprice==1.1.5
Searching for websockets<8.0.0,>=7.0.0
Reading https://pypi.python.org/simple/websockets/
Downloading https://files.pythonhosted.org/packages/43/71/8bfa882b9c502c36e5c9ef6732969533670d2b039cbf95a82ced8f762b80/websockets-7.0-cp36-cp36m-manylinux1_x86_64.whl#sha256=79691794288bc51e2a3b8de2bc0272ca8355d0b8503077ea57c0716e840ebaef
Best match: websockets 7.0
Processing websockets-7.0-cp36-cp36m-manylinux1_x86_64.whl
Installing websockets-7.0-cp36-cp36m-manylinux1_x86_64.whl to /usr/local/lib/python3.6/dist-packages
Adding websockets 7.0 to easy-install.pth file

Installed /usr/local/lib/python3.6/dist-packages/websockets-7.0-py3.6-linux-x86_64.egg
error: websockets 7.0 is installed but websockets<7.0,>=6.0 is required by {'sanic'}

因此似乎首先安装websockets 7.0,因为其中一个依赖项需要它,但是随后由于它需要websockets <7.0而不能安装另一个依赖项。

我该如何解决?

0 个答案:

没有答案