gpt4 book ai didi

python - 无法安装python包

转载 作者:太空宇宙 更新时间:2023-11-04 04:45:19 24 4
gpt4 key购买 nike

我在 macOS Sierra 上安装了 Python 2.7。我无法安装任何 Python 包。

当我尝试 pip install django -v 时:

Searching for virtualenv
Reading https://pypi.python.org/simple/virtualenv/
Couldn't find index page for 'virtualenv' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for virtualenv
error: Could not find suitable distribution for Requirement.parse('virtualenv')

easy_install virtualenv -v:

Searching for virtualenv
Reading https://pypi.python.org/simple/virtualenv/
Couldn't find index page for 'virtualenv' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for virtualenv
error: Could not find suitable distribution for Requirement.parse('virtualenv')

我不明白 Could not find suitable distribution for Requirement.parse('virtualenv') 想说什么。如何解决这个问题?

最佳答案

如果您的网络受限,您可以尝试
直接通过pip install virtualenv-15.2.0-py2.py3-none-any.whl 安装wheel 文件。 .

然后 pip install Django-1.11.12-py2.py3-none-any.whl .

即:从提供的链接下载 whl 文件,并在下载文件夹中打开一个终端。然后输入命令“pip install ...”。

关于python - 无法安装python包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49750356/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com