是否可以将 Anaconda Python 3 环境与 Pycharm 一起使用?
Is it possible to use an Anaconda Python 3 environment together with Pycharm?
我的基本问题是我想在 Window 的机器上为 Python 3 安装 scipy 并使用 Pycharm 作为我的开发环境。
Scipy Documentation as well as several Whosebug posts (Installing NumPy and SciPy on 64-bit Windows (with Pip), Trouble installing SciPy on windows 等的建议)是使用 Anaconda 安装预构建的 scipy 并避免使用 Fortran 和 C 编译器。
我过去在 Python 2.7 中使用过 Anaconda,因此我在 these directions 之后为 Python 3 创建了一个 Anaconda 环境。
创建环境的命令
conda create -n py3k python=3 anaconda
以及激活环境的命令
source activate py3k
这很好用,但我的大部分开发工作都是在 PyCharm 中完成的,我不知道如何从 PyCharm 激活 Anaconda 环境。有没有办法做到这一点,或者我应该采取另一种方法?
有关如何使用 Anaconda 配置 PyCharm 的说明,请参见 documentation。
在 PyCharm 首选项中,您可以 select 正确的 python 解释器,
Project Interpreter > Python Interpreters
正如@Cecilia 所指出的,在虚拟环境(例如名为 py3k
)与 Anaconda 一起使用的情况下,正确的 python 解释器位于
~/Anaconda/envs/py3k/python.exe
我的基本问题是我想在 Window 的机器上为 Python 3 安装 scipy 并使用 Pycharm 作为我的开发环境。
Scipy Documentation as well as several Whosebug posts (Installing NumPy and SciPy on 64-bit Windows (with Pip), Trouble installing SciPy on windows 等的建议)是使用 Anaconda 安装预构建的 scipy 并避免使用 Fortran 和 C 编译器。
我过去在 Python 2.7 中使用过 Anaconda,因此我在 these directions 之后为 Python 3 创建了一个 Anaconda 环境。
创建环境的命令
conda create -n py3k python=3 anaconda
以及激活环境的命令
source activate py3k
这很好用,但我的大部分开发工作都是在 PyCharm 中完成的,我不知道如何从 PyCharm 激活 Anaconda 环境。有没有办法做到这一点,或者我应该采取另一种方法?
有关如何使用 Anaconda 配置 PyCharm 的说明,请参见 documentation。
在 PyCharm 首选项中,您可以 select 正确的 python 解释器,
Project Interpreter > Python Interpreters
正如@Cecilia 所指出的,在虚拟环境(例如名为 py3k
)与 Anaconda 一起使用的情况下,正确的 python 解释器位于
~/Anaconda/envs/py3k/python.exe