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 提示符


基础教程推荐
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 筛选NumPy数组 2022-01-01
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01