How to python pip install for Python 2.7, having u

2019-07-19 01:11发布

问题:

  • 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 ... keeps installing for Python 3.6

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.

回答1:

If you have the 2 versions really installed, you should have a pip2 or pip2.x available in your PATH