Home >Backend Development >Python Tutorial >Learn Python using Anaconda tool

Learn Python using Anaconda tool

巴扎黑
巴扎黑Original
2017-07-24 13:50:091791browse

 Anaconda is a Python distribution for scientific computing, supports Linux, Mac, and Windows, and contains many popular Python packages for scientific computing and data analysis.

The most tedious thing in python learning is the management of different versions and different libraries, and Anaconda manages all versions as packages (including conda).

You can go to Tsinghua University’s open source mirror site to download the installation package.

By the way, download the anaconda warehouse mirror of Tsinghua University.

After the download is complete, run the following command from cmd to add the Anaconda warehouse image.

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --set show_channel_urls yes

Commonly used commands:

Create environment:

conda create -n [name of new environment] python=[ python version]

Example: conda create -n py361 python=3.6.1

Activate an environment:

activate [environment name]

Example: activate py361

Install library/package:

conda install [name of library/package]

Example: conda install scrapy

Delete an existing environment:

conda remove -n [name of environment] --all

Personally, I think anaconda has some advantages.

1. It is easy to switch between various environments.

2. The installation package does not report an error! Don’t report an error! Don’t report an error!

Those who love python will definitely fall in love with anaconda.

The above is the detailed content of Learn Python using Anaconda tool. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn