如何在Windows上使用Python 3.6之前为Python 2.7进行python pip安装 [英] How to python pip install for Python 2.7, having using Python 3.6 before on Windows
问题描述
-
我想问一下当我先前安装并使用Python 3.6时如何将
pip install
用于Python 2.7吗? (*我现在必须在Windows上使用Python版本)
I would like to ask about how to use
pip install
for Python 2.7, when I previously installing for and using Python 3.6 ? (*I now have to versions of Python on Windows)
pip install ...
继续为Python 3.6安装
pip install ...
keeps installing for Python 3.6
我需要使用以前的版本来重写Python 2.7中的代码. (这是用于构建Kivy应用程序,尽管Kivy表示它现在支持Python 3,但它也显示* 警告. .)要执行此操作,我必须kivy
和numpy
.
I need to use the previous version, to rewrite the code in Python 2.7. (this is for building a Kivy app, although Kivy says it now supports Python 3 but it also says * Warning.) In order to do this, I have to import
necessary modules : kivy
and numpy
.
希望对此提供反馈,谢谢.
Hope for feedbacks on this, Thanks.
推荐答案
如果已真正安装2个版本,则PATH
If you have the 2 versions really installed, you should have a pip2
or pip2.x
available in your PATH
这篇关于如何在Windows上使用Python 3.6之前为Python 2.7进行python pip安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!