How do I make Python 3.5 my default version on MacOS?

后端 未结 7 2267
迷失自我
迷失自我 2020-12-28 10:46

I have just installed Python 3.5.1 on my Mac (running the latest version of OSX). My system came with Python 2.7 installed. When I type IDLE at the Terminal pro

7条回答
  •  既然无缘
    2020-12-28 11:11

    You can switch to any python version in your project by creating a virtual environment.

    • virtualenv -p /usr/bin/python2.x (or python 3.x)

    In case you just want to run a program in a specific version just open shell and enter python2.x or python3.x

提交回复
热议问题