Get the Anaconda prompt running in the PyCharm terminal(获取在 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 提示符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:获取在 PyCharm 终端中运行的 Anaconda 提示符
基础教程推荐
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 求两个直方图的卷积 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 包装空间模型 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
