获取在 PyCharm 终端中运行的 Anaconda 提示符 [英] Get the Anaconda prompt running in the PyCharm terminal

查看:48
本文介绍了获取在 PyCharm 终端中运行的 Anaconda 提示符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 C:UsersmeMiniconda3 中安装了 Miniconda3,并将 PyCharm 中的项目解释器"设置为我的 conda 环境,一切正常.但是,似乎没有为我的路径变量设置 conda,就好像我在我得到的 PyCharm 终端中键入 conda 一样

I have Miniconda3 installed at C:UsersmeMiniconda3, 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 终端设置为像 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路径修改如下:

cmd.exe "/K" "C:UsersmeMiniconda3Scriptsactivate.bat" "C:UsersmeMiniconda3"

并且 C:UsersmeMiniconda3 可以替换为您的任一 conda 环境名称,例如 base

And the C:UsersmeMiniconda3 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 提示符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆