This assumes both their base folders are in your System Path. If you want to have Python 2.7 and 3.7 available at the command line, you can rename one (or both) python.exe interpreters e.g.:Ĭ:\path\to\Python27\python.exe → C:\path\to\Python27\python2.exeĬ:\path\to\Python37\python.exe → C:\path\to\Python37\python3.exe C:\path\to\Python27\python.exe, python (refering to C:\path\to\Python37\python.exe) won't be able to use it (primarily due to being separate installations but also differences between 2.7 and 3.7). If you python -m pip install numpy where python refers to e.g. Lastly, make sure that you are calling the correct version of python (as alluded to above). pip and numpy (or any other modules) between Python installations of any kind. You will always need to re-install packages for a new installation. One thing to remember is that Python installations are entirely separate on Windows, regardless of whether you install Python 2.7 and Python 3.7 "normally", or clone them with virtual environments (as detailed in the other answers to this question). Similarly, numpy can be re-installed in Python 2.7 as in 3.7. Pip should come with the Windows Python 2.7 installer (above), but you can always use pip-get.py. When I originally installed pip and numpy, it was through Python 3.7. Other than that, there should be no issues with running 2.7 and 3.7 side-by-side. You likely won't want to add 2.7 to your System Path during installation unless you want python (2.7) to replace python (3.7) at the command line. On Windows, you can manually install the latest version of Python 2.7 (which is currently Python 2.7.16) from. I need to know how I can switch the installation to Python 2.7.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |