下载安装anaconda
设置环境变量
创建虚拟环境 tensorbase
或
conda create --name TF24 python=3.8
查看已创建环境
conda info --env
conda env list
切换到指定的虚拟环境
conda activate tensorbase
删除虚拟环境
conda remove -n 虚拟环境名 --all
查看版本
conda -V
conda --version
查看python版本
python -V
查看已安装的包
conda list
删除指定的包 requests
conda remove requests
更改安装包下载位置为清华大学的镜像网站
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
清华的镜像关闭了anconda服务,所以无法创建虚拟目录,解决办法恢复默认的配置网站:
conda config --remove-key channels
安装tensorflow
pip install tensorflow
由于多次安装anconda,导致jupyter启动时出现问题,因此考虑卸载jupyter后再重新安装
conda uninstall jupyter
生成jupyter配置文件命令
jupyter qtconsole --generate-config