尝试安装 websocket 8.1 版本,但无法安装该特定版本。
pip install websockets
这是安装8.0.2
Successfully installed websockets-8.0.2
然后我在写
pip install websocket 8.1
然后它说
Collecting websocket
Downloading https://files.pythonhosted.org/packages/f2/6d/a60d620ea575c885510c574909d2e3ed62129b121fa2df00ca1c81024c87/websocket-0.2.1.tar.gz (195kB)
100% |████████████████████████████████| 204kB 819kB/s
Collecting 8.1
Could not find a version that satisfies the requirement 8.1 (from versions: )
No matching distribution found for 8.1
Python 和 pip 版本。
Python 3.6.0
pip 9.0.1
感谢任何帮助...
最佳答案
您应该将 websocket
替换为 websockets
:
pip install websockets==8.1
Collecting websockets==8.1
Downloading https://files.pythonhosted.org/packages/cf/cb/c35513c4a0ff24ca13e33f7336ba8c1a864449fad9fea8e37abdad11c38d/websockets-8.1-cp36-cp36m-manylinux1_x86_64.whl (73kB)
100% |████████████████████████████████| 81kB 934kB/s
Installing collected packages: websockets
Successfully installed websockets-8.1
我检查了一下,效果很好。
关于python - 如何通过pip安装websocket 8.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63918354/