<p>PyCharm是一个IDE,anaconda是一组库(一个发行版)。好消息是pyCharm支持anoconda。下面是我从Wayback机器中提取的一些文档(出于某种原因,Anaconda删除了他们关于与Pycharm集成的文档)。如果其中任何部分已经过时,请让我知道,以便我可以更新它。</p>
<hr/>
<p>使用PyCharm的首选项将其设置为使用水蟒。有多种方法可以访问“首选项”窗口,包括在PyCharm文件菜单中选择首选项或单击顶部图标栏中的首选项图标。</p>
<p><a href="https://i.stack.imgur.com/BUPpu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BUPpu.png" alt="enter image description here"/></a><a href="https://i.stack.imgur.com/J55yT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J55yT.png" alt="enter image description here"/></a></p>
<p>打开“首选项”窗口后,导航到“项目解释器”->;“Python解释器”。单击+号将Anaconda添加到Python解释器列表中。</p>
<p><a href="https://i.stack.imgur.com/vxXBR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vxXBR.png" alt="enter image description here"/></a></p>
<p>如果没有列出Anaconda Python路径,请选择Local。。。并导航到安装Anaconda Python的目录。通常这个目录是<code>~/anaconda/bin/python</code>。</p>
<p>添加Anaconda之后,您将看到它显示在Python解释器列表中,以及随它一起安装的其他包。单击“确定”。PyCharm IDE现在设置为使用水蟒。</p>
<p><a href="https://i.stack.imgur.com/gMYwO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gMYwO.png" alt="enter image description here"/></a>
更多信息:<a href="https://www.jetbrains.com/help/pycharm/available-packages.html" rel="nofollow noreferrer">Configuring available packages</a>和<a href="https://www.jetbrains.com/help/pycharm/conda-support-creating-conda-virtual-environment.html" rel="nofollow noreferrer">configuring Anaconda environment</a>。</p>
<hr/>
<p>另请参见<a href="https://stackoverflow.com/questions/28390961/using-anaconda-within-pycharm#31937300">Using (Ana)conda within PyCharm</a>。</p>