Is it ok to install both Python 2.7 and 3.5?

前端 未结 7 1199
有刺的猬
有刺的猬 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:24

    As long as you keep your installation folders organized, you should have no issues having both on your computer, besides one thing. The path environment variable for python will determine which version is used by default, so I would say stick to one version, or make sure to make your programs as backwards compatible as possible. I have run into this issue on Windows, since I installed Python 3.4 before 2.7, and therefore to run older code, I have to manually select the python executable. In terms of libraries, I believe that for each python version, the libraries are completely separate, so you should be good there.

提交回复
热议问题