简体   繁体   English

从Python 3.4.2切换到Python 2.7.1 OSX

[英]Switch from Python 3.4.2 to Python 2.7.1 OSX

I got an issue with my following demand. 我的以下需求有问题。 First of all i'm a total newbie, so please don't be too rude with me ;) I did install Python 3.4.2 along with PyCharm once (recommendation of a friend), but found a promising tutorial now, which recommends Python 2.7.1 badly, working with the Terminal and TextWrangler --> http://learnpythonthehardway.org/book/ . 首先,我是一个新手,所以请不要对我太粗鲁;)我确实与PyCharm一起安装了Python 3.4.2(朋友的推荐),但是现在发现了一个很有前途的教程,推荐使用Python 2.7.1糟糕的是,使用Terminal和TextWrangler-> http://learnpythonthehardway.org/book/ Somehow i didn't figure out how to uninstall 3.4.2 or switch to 2.7.1, 'cause the terminal keeps saying i'm still in 3.4.2. 我不知道怎么卸载3.4.2或切换到2.7.1,因为终端一直说我仍然在3.4.2中。 I did some research in the web, but got really confused and couldn't find any matching issue to mine. 我在网络上进行了一些研究,但感到非常困惑,无法找到任何匹配的问题。

Although it can be confusing, you can have both a v2.x and a 3.x version installed on your system. 尽管可能会造成混淆,但是您可以在系统上同时安装v2.x和3.x版本。 If you have installed a python 2.7.1 after your python 3.4.2, you should be able to run your python 2.7.1, just type python2 in place of python. 如果您在python 3.4.2之后安装了python 2.7.1,则应该能够运行python 2.7.1,只需键入python2代替python。

Try out : 试用 :

python --version
python2 --version

to check which version are installed. 检查安装的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM