gpt4 book ai didi

python - 无法使用 pip 搜索 python 包 pmock

转载 作者:太空宇宙 更新时间:2023-11-03 17:09:39 25 4
gpt4 key购买 nike

我正在尝试安装 python 包 pmock 。使用以下命令:

sudo pip install pmock

但是,我收到以下错误:

Collecting pmock
Getting page https://pypi.python.org/simple/pmock/

Could not find a version that satisfies the requirement pmock (from versions: )
Some externally hosted files were ignored as access to them may be unreliable (use --allow-external pmock to allow).
Cleaning up...
No matching distribution found for pmock

使用pip安装python包的正确方法是什么?

最佳答案

这是通过 pip 安装出现的常见问题之一,通常 django 安装程序在通过 requirements.txt 设置环境时也会抛出此错误。基本解决方案是允许外部 以及未验证选项

这样尝试外部托管文件:

sudo pip install pmock --allow-external pmock --allow-unverified pmock

关于python - 无法使用 pip 搜索 python 包 pmock,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34227404/

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