- 问题1:卸载anaconda不完全导致scripts文件下没有conda.exe
- 重新卸载,执行Uninstall-Anaconda3.exe,用360清理电脑注册表(以防万一)
- 问题2:重新安装anaconda之后,没办法创建属于tensorflow的虚拟环境,出现 Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. 报错
- 出现该问题一般有两种情况,1:安装源问题;2:网络慢的原因。
- 针对安装源,更换c盘用户下的.condarc文件的配置,但也有可能是因为我使用了vpn就能够安装了。
channels: - https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ - https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ show_channel_urls: true ssl_verify: true channel_priority: flexible
- 安装tensorflow
- 从开始进入Anaconda prompt
- 输入conda create –n TF2.1 python 3.7 (新建一个名为TF2.1的环境)
- 输入conda activate TF2.1 (进入TF2.1环境)
- 输入conda install cudatoolkit=10.1(安装英伟达的SDK 10.1版本)
- 输入conda install cudnn=7.6 (安装英伟达深度学习软件包7.6版本)
- 输入pip install tensorflow==2.1 –i https://pypi.douban.com/simple/ (安装TensorFlow2.1)



