目录
前言
今天把anaconda进行了滚动更新,实体环境python版本也相应从3.6跟新到了3.7。但是问题来了,之前安装的很多包,如opencv,dlib,等等都找不到对应版本,尴尬.......通常很多东西都是逃避不过去的,迟早会遇到,那么开始对虚拟环境的学习~~~~
1. 创建虚拟环境
conda create -n env_name python=X.X
以下是我的运行过程
# root @ geoffrey-pc in /home/geoffrey [16:02:33]
$ conda create -n Version_36 python=3.6
Solving environment: done
## Package Plan ##
environment location: /opt/anaconda/envs/Version_36
added / updated specs:
- python=3.6
The following packages will be downloaded:
package | build
---------------------------|-----------------
ncurses-6.1 | hfc679d8_1 1.2 MB https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
tk-8.6.8 | ha92aebf_0 3.1 MB https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
setuptools-40.4.3 | py36_0 554 KB https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
certifi-2018.8.24 | py36_1001 139 KB https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
libgcc-ng-7.2.0 | hdf63c60_3 6.1 MB https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
xz-5.2.4 | h470a237_1 328 KB https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
readline-7.0 | haf1bffa_1 381 KB h