我试图在Ubuntu14.04上使用pip1.5.5和Python2.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管理工具?
发布于 2014-05-12 11:43:36
试着调用:
pip install django-admin-tools==0.5.1 --allow-external django-admin-tools --allow-unverified django-admin-tools发布于 2015-03-20 16:30:58
--allow-unverified和--allow-external都使用包名作为参数。
From pip help install:
--allow-external <package> Allow the installation of a package even if it
is externally hosted
--allow-unverified <package> Allow the installation of a package even if it
is hosted in an insecure and unverifiable way所以你的用法应该是
pip install <pkg> --allow-unverified <pkg> --allow-external <pkg>
或者说有点困惑:
pip install --allow-unverified <pkg> --allow-external <pkg> <pkg>
发布于 2014-05-12 12:10:43
我找到了解决办法:
$ pip install django-admin-tools==0.5.1 --allow-unverified django-admin-tools相关bug报告#1814 - pip。
https://stackoverflow.com/questions/23607859
复制相似问题