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 提示符
基础教程推荐
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
