简体   繁体   English

Pycharm应该支持Anaconda,但似乎不支持

[英]Pycharm is supposed to support Anaconda but does not appear to

I'm trying to get PyCharm 2017.2.3 Community working nicely with Anaconda on my windows 7 box (64 bit). 我试图在Windows 7盒(64位)上与PyCharm 2017.2.3 Community很好地与Anaconda一起正常工作。

According to the jetbrains docs for PyCharm and Conda when I open the Project Interpreters page, I should see a "Create Conda Env" option. 根据当我打开“项目解释器”页面时PyCharm和Conda的jetbrains文档 ,我应该看到一个“ Create Conda Env”选项。

That "Create Conda Env" option does not appear, only "Add Local" and "Create VirtualEnv". 该“创建Conda Env”选项不会出现,仅显示“添加本地”和“创建VirtualEnv”。 Has anyone managed to get this PyCharm/Conda integration working and have some ideas why it doesn't work on my box? 有没有人设法使PyCharm / Conda集成正常工作,并且有一些想法为什么它在我的盒子上不起作用?

For what it's worth, I can create an environment manually in PyCharm, but there seem to be issues with this compared to my conda env (some imports not working etc), so I'm keen to get the native integration working if possible. 就其价值而言,我可以在PyCharm中手动创建一个环境,但是与conda env相比,这似乎存在一些问题(某些导入无法正常工作),因此,我渴望尽可能地使本机集成正常工作。

PyCharm is aware that I have a python installation as it gives me the option of selecting the python interpreter under my Anaconda folder. PyCharm知道我安装了python,因为它使我可以选择在Anaconda文件夹下的python解释器。 It just doesn't seem to recognise it specifically as Anaconda wrt creating PyCharm environments. 就像Anaconda创建PyCharm环境一样,它似乎并没有特别意识到。

This was fixed after I reinstalled windows without setting some key directories away from my c:\\ drive. 重新安装Windows后,未在c:\\驱动器之外设置一些关键目录的情况下,此问题已修复。 I had initially set things up to try and default to installing programs on my d:\\ drive instead, because my c:\\ SSD was so limited in space, and it appears changing these registry settings is what broke PyCharm. 最初,我已经进行了一些设置,尝试将其默认设置为在d:\\驱动器上安装程序,因为我的c:\\ SSD的空间非常有限,而且似乎更改这些注册表设置才使PyCharm破了。

I met the same issue. 我遇到了同样的问题。

Here is how I solve it. 这是我解决的方法。

First , I ensure I can use lib in anaconda in pycharm. 首先,我确保可以在pycharm的anaconda中使用lib。

then , I type 'conda' in cmd, it is not an internal order.Can't run conda. 然后,我在cmd中键入'conda',这不是内部命令。无法运行conda。

So ,I can use anaconda in pycharm but still system can't run it. 因此,我可以在pycharm中使用anaconda,但系统仍然无法运行它。

I check my System path, and anaconda is already there. 我检查了我的系统路径,并且anaconda已经存在。

I restart. 我重启。

I reinstall and this time I specify a document instead of the default invisible one. 我重新安装,这次我指定了一个文档,而不是默认的不可见文档。

I didn't click two options while installing. 我在安装时没有单击两个选项。

I run Anaconda Navigator in Win so it will change my anaconda path for me.(As install program told me to) 我在Win中运行Anaconda Navigator,因此它将为我更改anaconda路径(安装程序告诉我)

Then I run conda in cmd. 然后我在cmd中运行conda。

It react. 它反应。

Then I check my pycharm: 然后我检查我的pycharm: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM