Dealing with multiple Python versions and PIP?

后端 未结 23 2779
走了就别回头了
走了就别回头了 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:38

    for example, if you set other versions (e.g. 3.5) as default and want to install pip for python 2.7:

    1. download pip at https://pypi.python.org/pypi/pip (tar)
    2. unzip tar file
    3. cd to the file’s directory
    4. sudo python2.7 setup.py install

提交回复
热议问题