问题描述
我在C:\ Users \ me \ Miniconda3上安装了Miniconda3,并将PyCharm中的项目解释器"设置为conda环境,并且一切正常.但是,似乎没有为我的路径变量设置conda,就像我在得到的PyCharm终端中键入conda
一样
I have Miniconda3 installed at C:\Users\me\Miniconda3, and my 'Project Interpreter' within PyCharm set to my conda environment, and that is all working correctly. However it appears that conda is not set for my path variable as if I type conda
into the PyCharm Terminal I get
'conda' is not recognized as an internal or external command, operable program or batch file.
是否可以将PyCharm Terminal设置为类似于Anaconda Prompt?
Is there a way to set the PyCharm Terminal to behave like the Anaconda Prompt?
我安装了Windows 10,PyCharm 2018.1 EAP和conda 4.4.10.
I have Windows 10, PyCharm 2018.1 EAP, and conda 4.4.10 installed.
推荐答案
您可以更改pycharm设置以实现此目的.
You can change pycharm settings to achieve this.
在设置>工具>终端中,将Shell path
更改如下:
cmd.exe "/K" "C:\Users\me\Miniconda3\Scripts\activate.bat" "C:\Users\me\Miniconda3"
cmd.exe "/K" "C:\Users\me\Miniconda3\Scripts\activate.bat" "C:\Users\me\Miniconda3"
C:\Users\me\Miniconda3
可以用您的conda环境名称之一替换,例如base
And the C:\Users\me\Miniconda3
can be replaced by either one of your conda environment name such as base
关闭终端,然后重新打开,您将看到Anaconda提示.
Close the Terminal and reopen it, you will get the Anaconda prompt.
它可以在我的PyCharm Community Edition 2018.1.2中工作
It works in my PyCharm Community Edition 2018.1.2
这篇关于获取在PyCharm终端中运行的Anaconda提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!