Is it ok to install both Python 2.7 and 3.5?

前端 未结 7 1162
有刺的猬
有刺的猬 2021-01-04 02:02

Supposedly Python 2.7 is included native to OSX 10.8 and above (if I remember correctly), but I recently installed Python 3.5 to use for projects while I work through UDacit

7条回答
  •  半阙折子戏
    2021-01-04 02:20

    You can also use Anaconda for maintaining two versions of Python:

    1. Download Anaconda for both Python versions

    2. Open .bashrc

    3. Add the path to new Anaconda you have installed for, e.g.:

      export PATH="/home/paras/anaconda3/bin:$PATH"
      
    4. Now there will be 2 export paths: one for Python 2 and one for Python 3. Comment the one which you don't want.

提交回复
热议问题