Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何通过pip安装websocket 8.1_Python_Python 3.x_Pip - Fatal编程技术网

Python 如何通过pip安装websocket 8.1

Python 如何通过pip安装websocket 8.1,python,python-3.x,pip,Python,Python 3.x,Pip,正在尝试安装websocket 8.1版本,但我无法安装该特定版本 pip install websockets 这是在安装8.0.2 已成功安装websockets-8.0.2 然后我在写 pip install websocket 8.1 然后它说 Collecting websocket Downloading https://files.pythonhosted.org/packages/f2/6d/a60d620ea575c885510c574909d2e3ed6212

正在尝试安装websocket 8.1版本,但我无法安装该特定版本

pip install websockets
这是在安装8.0.2

已成功安装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==3.6.1

这是否回答了您的问题
pip install websocket==8.1
@piertoni找不到满足要求的版本websocket==8.1(来自版本:0.2.1)。未找到websocket==8的匹配发行版。1@Lomtrur不幸的是,我指出了pip的语法(使用“==”)。如果找不到,则可能不适用于您的平台(您使用的是什么?Windows?我使用的是linux,我可以使用pip安装它)。此外,可用性取决于您的python版本。pip安装websockets==8.1错误:找不到满足websockets==8.1要求的版本(来自版本:1.0、2.0、2.1、2.2、2.3、2.4、2.5、2.6、2.7、3.0、3.1、3.2、3.3、3.4、4.0、4.0.1、5.0、5.0.1、6.0、7.0、8.0、8.0.1、8.0.2)错误:找不到与websockets==8.1相匹配的发行版。您的操作系统是什么?为什么需要如此特定的版本?有什么特别的原因吗?@piertoni是的,对于这个项目,需要8。1@SacmaŞeyler Ubuntu。但我认为您需要尝试
pip3安装websockets==8.1