Python under conda command manual

Source: Internet
Author: User

Description: Conda Two conceptual environments Envs, each environment can be installed packages, so there are two concepts env and package

and Conda can install the Python environment at the same time, so you don't have to have a Python environment before executing the Conda command.

1, the first is the installation

Bash./anaconda3-5.0.1-linux-x86_64.sh

#conda设置源
# Add a anaconda tuna mirror
Conda Config--add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
# Tuna's help in the mirror address with quotation marks, need to remove

2. You need to create an environment env first, then create the package under the environment

#列举出所有环境

Conda INFO-E View the installed environment, the currently activated environment displays an asterisk or parentheses.

#创建一个环境 (note that the python=3.6 is developed here, which specifies that Python can be installed at the same time, so there is no need to have a python3.6 environment before executing this command)

Conda Create--name xujiandeeplearning python=3.6

# Delete an existing environment
Conda Remove--name xujiandeeplearning--all

#进入环境env
Activate Xujiandeeplearning # for Windows
SOURCE Activate Xujiandeeplearning # for Linux & Mac

#离开环境

Deactivate xujiandeeplearning # for Windows
SOURCE Deactivate xujiandeeplearning # for Linux & Mac

The different Python environments installed by the user will be placed under the directory C:\Users\username\Anaconda3\envs.

# View installed packages in the current environment
Conda List
# View installed packages for a specified environment
Conda List-n Python34
# Find package Information
Conda Search NumPy
# Install the Package
Conda install-n xujiandeeplearning NumPy
# Update Package
Conda update-n xujiandeeplearning NumPy
# Remove Package
Conda remove-n xujiandeeplearning NumPy

3, configure the environment how to use in Pycharm? Note that the location in the figure is an empty directory, the directory before venv is the project directory;

Here is the main configuration Base interpreter This option, is in your env directory under the environment TensorFlow Python.ext Note This configuration is very important

Python under conda command manual

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.