Python安装包:can';t使用pip install命令安装软件包

Python安装包:can';t使用pip install命令安装软件包,python,pip,conda,python-3.8,anaconda3,Python,Pip,Conda,Python 3.8,Anaconda3,我一直试图在anaconda提示符下使用pip install命令在我的conda环境中安装vertex软件包,但我不断收到以下警告和错误: pip install vertex WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(

我一直试图在anaconda提示符下使用pip install命令在我的conda环境中安装vertex软件包,但我不断收到以下警告和错误:

pip install vertex

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/vertex/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/vertex/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/vertex/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/vertex/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/vertex/
ERROR: Could not find a version that satisfies the requirement vertex
ERROR: No matching distribution found for vertex
pip --default-timeout=1000 install vertex

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/vertex/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/vertex/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/vertex/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/vertex/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/vertex/
ERROR: Could not find a version that satisfies the requirement vertex
ERROR: No matching distribution found for vertex
anaconda提示符的屏幕截图:

我尝试延长pip命令的超时时间,并收到以下警告和错误:

pip install vertex

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/vertex/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/vertex/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/vertex/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/vertex/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/vertex/
ERROR: Could not find a version that satisfies the requirement vertex
ERROR: No matching distribution found for vertex
pip --default-timeout=1000 install vertex

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/vertex/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/vertex/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/vertex/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/vertex/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/vertex/
ERROR: Could not find a version that satisfies the requirement vertex
ERROR: No matching distribution found for vertex
anaconda提示符的屏幕截图:

大约一周前,我在安装scipy时遇到了同样的问题,但我通过使用以下命令成功绕过了它:

conda install -c conda-forge scipy
它成功了,然后我将康达·弗朗奇频道添加到我的环境中。尝试使用conda install命令安装vertex软件包时,我收到一条消息,它在当前通道中找不到vertex软件包,并且我没有为此找到合适的通道。命令行:

conda install vertex

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - vertex

Current channels:

  - https://conda.anaconda.org/bioconda/win-64
  - https://conda.anaconda.org/bioconda/noarch
  - https://conda.anaconda.org/anaconda/win-64
  - https://conda.anaconda.org/anaconda/noarch
  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/win-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
无论哪种方式,我都无法在我的conda环境中安装vertex软件包


提前感谢所有帮助人员:)

此软件包在Anaconda Cloud上似乎不可用,其历史记录已有几年,没有更新。略过项目,它看起来不处于活动维护状态,因此您可能无法通过包管理器安装它(如果有的话)。

您可以尝试避免混合多个包源。这样做会降低依赖性问题的可能性。据我所知,在您的环境中,您现在有3个来源:

  • 康达
  • 康达锻造厂
  • 皮普
对于干净的conda环境,pip安装包时不会出现错误

conda create -n vertex-env python=3
conda activate vertex-env
pip install vertex
pip list
使用上面的命令序列,我成功地安装了vertex包,尽管我没有验证运行时

$ pip list
Package        Version
-------------- -------------------
attrs          20.3.0
Automat        20.2.0
certifi        2020.12.5
cffi           1.14.4
constantly     15.1.0
cryptography   3.3.1
hyperlink      21.0.0
idna           3.1
incremental    17.5.0
pip            20.3.3
pycparser      2.20
PyHamcrest     2.0.2
pyOpenSSL      20.0.1
setuptools     49.6.0.post20210108
six            1.15.0
Twisted        20.3.0
Vertex         0.3.1
wheel          0.36.2
zope.interface 5.2.0

考虑到这个包有多旧,几乎没有理由相信它能与任何Python3版本一起工作。事实上,我们发现缺少一些括号,这意味着Python3不兼容。因此,请尝试Python 2.7版本,让Pip解决除Python和Pip之外的所有问题:

vertex.yaml

名称:顶点
频道:
-康达锻造厂
-默认值
-免费的
依赖项:
-python=2.7
-皮普
-pip:
-顶点
-服务标识
然后从shell(例如bash)开始:

conda env create-n vertex-f vertex.yaml
康达激活顶点

这使得Vertex在加载我在测试中发现的一些模块(例如,Vertex import q2q中的
)时能够安装并且不会抛出错误,但我没有运行实际的测试。

是的,你是对的,但是我知道我班上的人能够毫无问题地安装该软件包(我在课程项目中需要它)。考虑到一周前我在使用pip命令安装scipy时遇到问题,我不认为这是安装失败的原因。不管怎样,谢谢。我试过你写的东西,但还是不起作用。我还尝试完全卸载anaconda并重新安装它,然后执行您编写的操作,但仍然不起作用。还是谢谢你的努力。@Niv听起来不错。确保文件中的间距与我提供的间距完全匹配(YAML对空白敏感)。因为你在Windows上,你可能需要启动一个Anaconda提示符会话,而不是默认的命令提示符。它仍然抛出与帖子中相同的错误。对于我的班级项目要求,我需要python 3.7.x