Use Anaconda to manage your python envs
Anaconda is very convenient tool to manage multiple virtual envs of python in your PC.
So you can enjoy different version of python, avoid conflictions between different projects.
This blog I will introduce how to install anaconda & install envs for tensorflow(CPU)、Scrapy
Install anaconda
- Go to the official website to download latest Anaconda.
- Install Anaconda with default configurations.
- Of course you can change the location wherever you like to install it;
- Don’t recommend you to add Anaconda to the system PATH env var.
Manage envs with Anaconda
common commands:
1 | # check current env |
Manage packages with Anaconda
1 | # install new pkgs |
Use domestic mirrors
In order to install and upgrade easily in China. We should specifically allocate domestic mirrors to it.
- find
.condarc
in C:\Users\user_name\.condarc - remove
- default
- Open Anaconda Prompt,input:
1 | conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ |
To ensure that pkgs you use does not interfere with each other. Better to create new envs for them.
Install tenflow(CPU)
1 | conda create -n tensorflow python=3.5 |
Install Scrapy
1 | conda create -n py27 python=2.7 |
Wait a moment & have a cup of tea~