简体   繁体   English

找不到满足所有包的要求的版本

[英]Could not find a version that satisfies the requirement for all the packages

I have recently configured python3 for other application and running on the same machine where python 2.7 was running.. I see python3 applications are working fine with command python -m pip install package-name and python3 manage.py runserver command 我最近为其他应用程序配置了python3并在运行python 2.7的同一台机器上运行..我看到python3应用程序正常运行命令python -m pip install package-namepython3 manage.py runserver命令

But I am facing trouble with my existing application and new application with following issue while installing package 但是在安装软件包时,我的现有应用程序和新应用程序遇到了以下问题

You are using pip version 7.1.0, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting django-allauth==0.27.0
  Could not find a version that satisfies the requirement django-allauth==0.27.0 (from versions: )
No matching distribution found for django-allauth==0.27.0

This is the command I used, 这是我用的命令,

pip install django-allauth==0.27.0

Anybody know how to resolve it? 有人知道怎么解决吗?

This is the command output, 这是命令输出,

pip 7.1.0 from /Users/overflow/.virtualenvs/ion/lib/python2.7/site-packages (python 2.7)

Try installing another version: 尝试安装另一个版本:

pip install django-allauth

Make sure you're using the version of pip that corresponds to the version of Python you are using: 确保您使用的pip版本与您正在使用的Python版本相对应:

pip --version

Alternatively, be explicit in which version you use: 或者,明确您使用的版本:

python3 -m pip install django-allauth

or 要么

python2 -m pip install django-allauth

try 尝试

pip install --upgrade pip

first 第一
and then 接着

pip install django-allauth==0.27.0

I'm little confused with you'r version problem, but you can choose you'r python vertion using py-2.x or py -3.x . 我对你的版本问题很困惑,但你可以使用py-2.xpy -3.x选择你的python py -3.x For example: 例如:

py -3.6 -m pip install djangp-allauth==0.27.0

py -2.7 -m pip install djangp-allauth==0.27.0

我通过在每个项目中卸载PIP然后重新安装它来修复它。可能不是一个好的解决方案,但这是有效的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM