Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm still coming to terms with the Python ecosystem and PyCharm, so take the following with a grain of salt, but after <a href="http://mirnazim.org/writings/python-ecosystem-introduction/" rel="noreferrer">reading up a bit</a>, I thought I'd write a detailed explanation.</p> <p>During installation, Anaconda changes the default Python interpreter to ~/anaconda/bin/python. This interpreter is configured with a <code>sys.path</code> that defaults to the libraries in ~/anaconda/lib . Package managers like python's pip use the interpreter that's running them to determine the path in which to install packages, so after Anaconda is installed, all packages installed via pip or other methods will be placed somewhere inside ~/anaconda/lib. i.e. even without using something like virtualenv, every Python interpreter has its own ecosystem and running pip with different interpreters will install packages into different directories.</p> <p>PyCharm handles all this in the <code>Project Settings--&gt;Project Interpreter--&gt;Python Interpreters</code> screen. To make PyCharm aware of the Anaconda distribution, you need to add the Anaconda python interpreter to the <code>Project Interpreter--&gt;Python Interpreters</code> list and make it the default for the project. PyCharm will then locate all packages installed in Anaconda's interpreter ecosystem (~/anaconda/lib) and list them under <code>packages</code> in the lower pane. It will also prompt you to install setup_tools and pip for that interpreter, and once you do that you'll be able to use the <code>install</code> button in the lower pane to add more packages to the Anaconda ecosystem. </p> <p>Once you've added the Anaconda interpreter, you can also use the virtualenv button from the toolbar on the upper pane to create a virtualenv that inherits from the Anaconda interpreter's environment. That way you can install new packages in a way that would not affect the global Anaconda distribution. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload