Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Anaconda packages: How to add repo URL in PyCharm?

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 enter image description here I get enter image description here, which does not allow me to install new packages. Pressing "Manage Repositories" and then "+" gives me enter image description here 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

enter image description here

like image 404
Make42 Avatar asked Oct 31 '16 18:10

Make42


People also ask

How do I connect PyCharm to Anaconda Navigator?

Open the Anaconda Navigator, click "File" - "Preferences", add the directory path of Pycharm in the "Pycharm Pro path" or "Pycharm CE path", depending on your Pycharm type. The directory path here should be the whole directory, for example, "C:\Pycharm". Wish it helps!


1 Answers

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.

enter image description here

like image 81
opyate Avatar answered Oct 03 '22 11:10

opyate