Installing Anaconda packages: How to add repo URL in PyCharm?
You might have been using an older version at the time of posting, but in PyCharm 2017.3 there's a separate green Conda icon next to the plus button you clicked, and when clicked uses the Conda package manager.
Make42
I am a data scientist in the area of machine learning and artificial intelligence: in industry I am working in applied data science and data analytics in product development and consulting at university I am doing foundational research in theoretical data science and machine learning
Updated on June 20, 2022Comments
-
Make42 about 2 years
Disclaimer: This is not about installing Anaconda packages in general. I know I can do this via cli. This is about installing them via PyCharm and the specific question is about how to add a repo. (Just saying.)
I want to use Anaconda in PyCharm, and the interpreter works, but not the package installing. When I press + in I get , which does not allow me to install new packages. Pressing "Manage Repositories" and then "+" gives me so I suspect that I need to add a repository URL, but I could not find any information in the internet about what to enter. What am I supposed to do?
Because of
$ conda info Using Anaconda Cloud api site https://api.anaconda.org Current conda install: platform : linux-64 conda version : 4.0.6 conda-build version : 1.20.0 python version : 2.7.11.final.0 requests version : 2.7.0 root environment : /Development/Anaconda-Python-Distribution/anaconda2 (writable) default environment : /Development/Anaconda-Python-Distribution/anaconda2 envs directories : /Development/Anaconda-Python-Distribution/anaconda2/envs package cache : /Development/Anaconda-Python-Distribution/anaconda2/pkgs channel URLs : https://repo.continuum.io/pkgs/free/linux-64/ https://repo.continuum.io/pkgs/free/noarch/ https://repo.continuum.io/pkgs/pro/linux-64/ https://repo.continuum.io/pkgs/pro/noarch/ config file : /home/user/.condarc is foreign system : False
I added
https://repo.continuum.io/pkgs/free/linux-64/ https://repo.continuum.io/pkgs/free/noarch/ https://repo.continuum.io/pkgs/pro/linux-64/ https://repo.continuum.io/pkgs/pro/noarch/
to "Manage Repositories", but when I pressed "Reload List of packages" in "Available Packages" I still did not get any packages.
EDIT:
Here is my settings window in 2017.3.4 Community Edition
-
Make42 over 6 yearsAs you can see in my edit to the question: I have the button, but it is not click-able.
-
opyate over 6 yearsPerhaps because PyCharm is now already using the Conda package manager for that project. I think for a new project you ought to be able to click it once.
-
Make42 over 6 yearsYes, that is right. I am already using Conda package manager (I wasn't sure what the button was supposed to do). It seems that the issue from my question is partly resolved: I can see packages now and can install them. However, I just upgraded a package via PyCharm. Then I checked via command line with
conda list
, but there the package still has the old version number...