目录
anaconda使用
conda env list
列出环境
conda create -n envName python=3
搭建一个python版本为3的envName环境
activate envName
激活环境
conda remove -n envName --all
删除环境
conda search opencv
查看可安装包
测试搭建的环境
conda env export > environment.yaml
导出环境
conda env create -f environment.yaml
搭建环境
清楚一些错误conda clean -ipip安装
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy
https://mirrors.aliyun.com/pypi/simple/
https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/
测试是否已搭建成功
python
import tensorflow as tf
tf.test.is_gpu_available()