gpt4 book ai didi

python - 使用 Pip 1.5 安装外部的、未验证的包

转载 作者:太空宇宙 更新时间:2023-11-04 07:08:53 27 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 14.04 上使用 pip 1.5.5 和 Python 2.7.6 安装 django-admin-tools 0.5.1。

我第一次尝试:

$ pip install django-admin-tools==0.5.1
Downloading/unpacking django-admin-tools==0.5.1
Could not find a version that satisfies the requirement django-admin-tools==0.5.1 (from versions: 0.4.0)
Some externally hosted files were ignored (use --allow-external to allow).
Cleaning up...
No distributions matching the version for django-admin-tools==0.5.1
Storing debug log for failure in /tmp/tmpd5Tb2I

'pip help install' 的文档说:

 --allow-external <package>  Allow the installation of externally hosted files

尝试启用该标志:

$ pip install --allow-external django-admin-tools==0.5.1                                                                                                                 
You must give at least one requirement to install (see "pip help install")

这很奇怪。稍加修修补补,发现外包URL不是https(setup.py)。所以我尝试使用标志 --allow-unverified:

$ pip install --allow-external --allow-unverified django-admin-tools==0.5.1                                                                                              
Downloading/unpacking django-admin-tools==0.5.1
Could not find a version that satisfies the requirement django-admin-tools==0.5.1 (from versions: 0.4.0)
Some externally hosted files were ignored (use --allow-external to allow).
Cleaning up...
No distributions matching the version for django-admin-tools==0.5.1
Storing debug log for failure in /tmp/tmpoT1_tW

我是不是用错了?如何解决这个问题并使用 pip 安装 django-admin-tools?

最佳答案

尝试调用:

pip install django-admin-tools==0.5.1 --allow-external django-admin-tools --allow-unverified django-admin-tools

关于python - 使用 Pip 1.5 安装外部的、未验证的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23607859/

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