我最近为其他应用程序配置了python3并在运行python 2.7的同一台机器上运行..我看到python3应用程序正常运行
python -m pip install package-name
和
python3 manage.py runserver
命令
但是在安装软件包
时,我的现有应用程序和新应用程序遇到了以下问题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
这是我使用的命令,
pip install django-allauth==0.27.0
有人知道怎么解决吗?
这是命令输出
pip 7.1.0 from /Users/overflow/.virtualenvs/ion/lib/python2.7/site-packages (python 2.7)
答案 0 :(得分:2)
尝试安装其他版本:
ArrayList<Integer> array = new ArrayList<Integer>();
ArrayList<Integer> array2 = new ArrayList<Integer>();
int x;
int sample = 0;
// convert to image coords and do actual drawing
for (int i = 0; i < subsets.length; i++) {
sample = (int) subsets[i];
x = i * Width;
array.add(x);
array2.add(sample);
System.out.println(array2);
int x1 = (int) (x - 8); // 8 = Width; this sets out the horizontal steps
int x2 = (int) (x);
int y1 = (int) (sample - i);// these are the vertical points
int y2 = (int) (sample);// need to be able to start from the second element in the array for y2!
System.out.println(y2);
g2d.drawLine(x1, y1, x2, y2);
}
确保您使用的x = document.getElementsByTagName("a");
x[2].style.display = "none";
x[3].style.display = "none";
x[4].style.display = "none";
版本与您正在使用的Python版本相对应:
pip install django-allauth
或者,明确您使用的版本:
pip
或
pip --version
答案 1 :(得分:1)
尝试
pip install --upgrade pip
第一
然后
pip install django-allauth==0.27.0
答案 2 :(得分:0)
我对你的版本问题感到困惑,但你可以使用py-2.x
或py -3.x
选择你的python vertion。例如:
py -3.6 -m pip install djangp-allauth==0.27.0
py -2.7 -m pip install djangp-allauth==0.27.0
答案 3 :(得分:0)
我通过在每个项目中卸载PIP然后重新安装它来修复它。可能不是一个好的解决方案,但这可行。