python - 如何通过pip安装websocket 8.1

标签 python python-3.x pip

尝试安装 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/

相关文章:

python - 如何使用 matplotlib 更新图形

python - Google AppEngine Python 3.7 上的自定义库

terminal - 找不到 Py.test 命令,但已安装库

python - NumPy 中的 np.dot 打印预期内容的转置

python - Python for 循环迭代

python - 解压 IEEE 754 float

python - 删除大 CSV 文件的第一行?

python - `pip install pandas` 给出 UnicodeDecodeError : 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128)

python - 数据帧的行总和返回零。 (当只有几行有 N/A 时)

python - 出现 "string index out of range"错误