Dealing with multiple Python versions and PIP?

后端 未结 23 2826
走了就别回头了
走了就别回头了 2020-11-21 06:58

Is there any way to make pip play well with multiple versions of Python? For example, I want to use pip to explicitly install things to either my s

23条回答
  •  伪装坚强ぢ
    2020-11-21 07:37

    Installation of multiple versions of Python and respective Packages.

    Python version on the same windows machine : 2.7 , 3.4 and 3.6

    Installation of all 3 versions of Python :

    • Installed the Python 2.7 , 3.4 and 3.6 with the below paths

    PATH for all 3 versions of Python :

    • Made sure the PATH variable ( in System Variables ) has below paths included - C:\Python27\;C:\Python27\Scripts;C:\Python34\;C:\Python34\Scripts;C:\Python36\;C:\Python36\Scripts\;

    Renaming the executables for versions :

    • Changed the python executable name in C:\Python36 and C:\Python34 to python36 and python34 respectively.

    Checked for the command prompt with all versions :

    Installing the packages separately for each version

提交回复
热议问题