Anaconda project management environment using python

Pycharm no built-in python interpreter, we need to download their own python interpreter.

In many python project will import third-party modules, one by one go to download import inconvenient.

We usually use Anaconda to manage the python project environment, Anaconda comes with python interpreter, and provides a large number of third-party modules, third-party libraries easily.

 

 

Anaconda installation

 

If you do not check first to be added to the Path environment variable, followed by the need to manually add the path conda.exe directory in the path environment variable.

 

Anaconda red box circled is the core of the program is necessary, the other is automatically installed plug-ins.

There tidy obsessive-compulsive disorder can run the program in the red box, and then uninstall plug-ins:

 

 

 

 

Configuring Pycharm interpreter

 

 

 

 

New Project

You can choose a new environment, you can also choose an existing interpreter. Before you can not configure the interpreter, until the new project configuration is required.

Note: If you choose to create a new environment, to choose Conda.

 

 

 

Three ways to import third-party modules

1, the write import statement  Import XXX  , the Alt + the F4, the corresponding packet can be installed.

 

2, Ctrl + Alt + S -> blocker settings -> +

 

 

 

3, in the installation package Anaconda

 

 

to sum up:

  • The first one of the most convenient, but write import statements, third-party libraries is no code hints are not familiar with the package name may be wrong.
  • Second, when the package name has three input candidates. I think pycharm run more smoothly than the anaconda, a third better than the second number (run more smoothly).
  • If you have already imported, but there are still red line error, it is likely to be pycharm index of the current project environment package. Import | After removing the package, pycharm will re-index all packages (updated environment) project environment, very slowly (lower right corner you can see progress running), wait a minute ok.
  • Remove packages are also three methods above.

 

Guess you like

Origin www.cnblogs.com/chy18883701161/p/11300371.html