as the saying goes "life is short, I have Python', but if you encounter packet and Python version of the problem in the estimation of Python beginners course will let you suffer for a while, I saw the introduction of the anaconda in the Python crawler framework of learning, it is wrong ah, I think every Python learning website first should Anaconda to use tutorial, because in practice the process of light environment of all kinds of error will be able to spend all your interest in learning!

below briefly introduces anaconda, which is used directly by Python version and many commonly used package packages, Python distribution, supporting Linux, MAC and windows system, and has a strong execution tool of CONDA. It will make you comfortable to use.

Anaconda install

different operating system are directly in "_blank" > script home download the installation package to download, choose your most frequently used Python version to install, download after installation, as far as possible according to Anaconda's default behavior, the current version will not be added to the bin directory to the path environment variable.

but after installation can be used with command line interface operation

here to write the picture description

: conda can be successfully installed by the --version command to test whether the installation is successful. The python --version command can also be used to view the default Python version of the release.

encountered an error Failed to create menus

here to write the picture description > is not able to create a menu in the process I installed in here, I tried a lot of ways, through the final after all the Java environment variable can be deleted installed successfully.

the wrong solution:

installation English do not include a language other than the path, namely the installation path with all English named; enter CMD, find your installation position (I D:anacoda), then the implementation of python Libs_nsis.py mkmenus

. If these methods can't solve your problem, you can see here:

note: in the process of using the following you will find the use of the CONDA download speed is very slow, because the use of a foreign server, so here to set for the domestic image. The following configuration commands can be used:

, picture description here, the installation is successful, and it can be checked through CONDA --version command whether the installation is successful. The python --version command can also be used to view the default Python version of the release. In the process of installation, I encountered a mistake. Failed to create menus, where I wrote picture description, was unable to create menu. Here, I tried many solutions. Finally, after all Java environment variables were deleted, it could be installed successfully. In general this wrong solution: the installation path in English do not include other languages, namely the installation path with all English named; enter CMD, find your installation position (I D:anacoda), then the implementation of Python.Libs_nsis.py mkmenus if these methods can't solve your problem, you can see here: https://www.zhihu.com/question/42263480 note: in use the following you will find the use of the CONDA download speed is very slow, because the use of a foreign server, so here to set for the domestic mirror. Use the following configuration command: 

in addition to the use of the command line, you can use the graphical interface Navigator to manage your Python version, root is selected when the download version of the python, and you can choose the right search box to select

click on the Create you can choose to download the python version, python version to switch directly click the

 command used here to write picture description

conda

conda operation management tools can install different versions of python, and are free to switch And often use the following command:

 # creating a python34 environment, specify the Python version is 3.4 (not 3.4.x, CONDA will automatically search for our latest version of 3.4.x in CONDA create --name python34 python=3.4) # after installation, use the activate activation of a activate python34 # environment for Windows source activate python34 for Linux & Mac #; # after activation, the terminal input will find where more python34 words, in fact, the system to do is to remove the default 2.7 environment from PATH, and then 3.4 corresponding orders to join PATH # at Python --version # input can be `Python 3.4.5 again:: Anaconda 4.1.1 (64-bit), which, system has switched to the 3.4 # environment if you want to return the default Python 2.7 environment running deact Ivate python34 for Windows source deactivate python34 # # for Linux & Mac # delete one of the existing CONDA remove --name python34 --all

environment using CONDA

 # management package to install SciPy CONDA install SciPy CONDA # from remote search SciPy relevant information and relying on the project, for Python 3.4, numpy and CONDA will be installed at the same time MKL (accelerated Computing Library) # view already installed packages CONDA list # CONDA the latest version of the search has been installed packages from the site-packages folder, not dependent on pip, it can show the installation package # through a variety of ways to view the current environment installed CONDA list # view a certain environment. CONDA list -n python34 package has been installed package CONDA search numpy # find information # to install package Co NDA install -n python34 numpy -n # if not specified name, were installed in the current active environment # can also specified by -c through a channel package CONDA update -n installation # update python34 numpy package CONDA remove -n python34 # delete numpy # update CONDA, the latest CONDA update CONDA CONDA Anaconda CONDA update Anaconda # update Python CONDA update Python # # update the assumption that the current environment is Python 3.4, CONDA Python will be upgraded to speak here on the pycharm Anaconda p> 

3.4.x configuration using the anaconda

pycharm

in Pycharm: Files> > settings> > Project Interpreter> > Anaconda the application of python.exe. to add Add local which can be called a variety of Anaconda library. And if you download the other version of python, envs in python.exe is also added to the Project Interpreter, when you need to switch to

as shown in the picture below: some of the basic process of installing and using

here to write the description above the

src=

is anaconda, you want to learn Python help.


This concludes the body part