[英]Install Python 3.5 on Mac for IntelliJ IDEA / PyCharm
I'm using a third-party Python package that supports Python 3.5, but not 3.6. 我正在使用支持Python 3.5,但不支持3.6的第三方Python程序包。 I've got Python 2.7 installed from my OS vendor (it's a Mac), and Python 3.6 installed through homebrew . 我已经从操作系统供应商(这是Mac)安装了Python 2.7,并通过homebrew安装了Python 3.6。
What's the best way for me to install 3.5 and configure IntelliJ IDEA (using its Python plugin, so it's basically equivalent to PyCharm ) to use it? 我安装3.5并配置IntelliJ IDEA(使用其Python插件,因此基本上等效于PyCharm )使用的最佳方法是什么?
You can install as many Python distributions as you want and they all located in /Library/Frameworks/Python.framework/Versions
. 您可以根据需要安装任意数量的Python发行版,它们都位于/Library/Frameworks/Python.framework/Versions
。 However, pip3 will only be linked to the last python distribution you installed, not the latest. 但是,pip3只会链接到您安装的最后一个 python发行版,而不是最新的。 For example, in my case, my pip3 is the module in python3.5 because I installed it after 3.6. 例如,就我而言,我的pip3是python3.5中的模块,因为我是在3.6之后安装的。 If you want to use a package for a specific version, run $ python3.x -m package
. 如果要使用特定版本的软件包,请运行$ python3.x -m package
。 python3.6 -m pip install
, for example. 例如python3.6 -m pip install
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.