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