简体   繁体   English

如何在 PyCharm 中使用 Anaconda 软件包而无需重新安装它们?

[英]How do I use Anaconda packages in PyCharm without having to reinstall them?

I mainly use Jupyter Notebooks/Lab through Anaconda and typically install needed packages using pip.我主要通过 Anaconda 使用 Jupyter Notebooks/Lab,通常使用 pip 安装所需的软件包。 However, I've recently started using PyCharm and have been unable to access these packages despite using a Conda environment as my project interpreter and instead have to individually reinstall each of the packages through PyCharm.但是,我最近开始使用 PyCharm,尽管使用 Conda 环境作为我的项目解释器,但我无法访问这些包,而是必须通过 PyCharm 单独重新安装每个包。

These are my settings when creating a new project in PyCharm:这些是我在 PyCharm 中创建新项目时的设置:

New environment using Conda使用 Conda 的新环境

Location: C:\Users\Name\anaconda3\envs\untitled位置:C:\Users\Name\anaconda3\envs\untitled

Python Version: 3.8 Python 版本:3.8

Conda executable: C:\Users\Name\anaconda3\Scripts\conda.exe Conda 可执行文件:C:\Users\Name\anaconda3\Scripts\conda.exe

I've also added the following three paths to my environment variables:我还在我的环境变量中添加了以下三个路径:

  • ...\anaconda3\Scripts ...\anaconda3\脚本

  • ...\anaconda3 ...\蟒蛇3

  • ...\anaconda3\Library\bin ...\anaconda3\库\bin

Is there a way for me to access the Anaconda packages without reinstalling them for PyCharm?有没有办法让我访问 Anaconda 软件包而不为 PyCharm 重新安装它们? Thank you.谢谢你。

If you haven't checked it out already, Anaconda has some good documentation on how to use PyCharm with an Anaconda environment that you can check out here .如果您还没有检查过,Anaconda 有一些关于如何将 PyCharm 与 Anaconda 环境一起使用的很好的文档,您可以在这里查看

You will probably want to use an Existing Environment rather than create a new one and will have to make sure you point your Conda path to the existing executable (C:\Users\Name\anaconda3\Scripts\conda.exe).您可能希望使用Existing Environment而不是创建新环境,并且必须确保将您的 Conda 路径指向现有的可执行文件(C:\Users\Name\anaconda3\Scripts\conda.exe)。 You should then be able to select the existing environments you have setup in the Interpreter drop down.然后,您应该能够 select 您在Interpreter下拉菜单中设置的现有环境。

德斯

暂无
暂无

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

相关问题 如何在不“安装”它们的情况下下载Anaconda软件包? - How do I download Anaconda packages without “installing” them? PyCharm安装包怎么使用? - How do I use installed packages in PyCharm? 我无法将anaconda附带的软件包与pycharm一起使用 - I can't use the packages that come with anaconda with pycharm 如何配置 Pycharm 以使用 Anaconda 中已安装的软件包? - How to configure Pycharm to use packages already installed in Anaconda? Anaconda是否会重新安装所有软件包(如(numpy,pandas,pycuda等)),即使我之前在Ubuntu 18.04中使用python单独安装了它们? - Does Anaconda reinstall all the packages like(numpy, pandas, pycuda etc) even if I had installed them earlier separately with python in Ubuntu 18.04? 如何在 pycharm venv 中安装软件包? - How do I install packages in pycharm venv? Python:我在哪里可以找到 Anaconda 导航器的“gf”之类的软件包,如何安装它们? Python 版本 3.6 - Python: Where do I find packages like “gf” for the Anaconda Navigator and how do I install them? Python Version 3.6 如何在 Visual Studio Code 中使用 anaconda 东西而不从 Anaconda Navigator 启动它? - How do I use anaconda stuff in Visual Studio Code WITHOUT launching it from Anaconda Navigator? 刚装了Anaconda怎么启动spyder ide或者pycharm? - Just installed Anaconda how do I start spyder ide or pycharm? 如何让PyCharm使用通过Anaconda安装的熊猫? - How do I make pandas installed via Anaconda usable by PyCharm?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM