1、使用conda -navigate出现AttributeError: ‘str’ object has no attribute ‘get’
解决方案在anaconda3安装包下寻找/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/anaconda_api.py文件,修改以下内容:
//anconda_api.py中搜索def vscode_application_data(self):"""Get vscode data from microsoft rest api."""data = {}url = "https://update.code.visualstudio.com/api/update/win32-x64/stable/version"//URL修改在这里
2、安装tensorflow时出现“InvalidVersionSpecError: Invalid version spec: =2.7”
解决方案:输入vim ~/.condarc
编辑用户目录下的.condarc ( 例如windows就是:C:\Users\admin.condarc ,Linux一般是~/.condarc,删除带有:conda-forge 的那一行,虽然不报错了,但是安装过程又出现PackagesNotFoundError: The following packages are not available from current channels,果然缺少了conda-forge还是不行,又在shell中输入conda config --add channels conda-forge
添加进去,另外使用pip指令,如果需要更新的话就按指示更新pip指令版本
3、安装tensorflow过程pip时出现solving_environment一直转圈圈
(注意是一直转圈圈,而不是出现失败后又retry,之前出现这种情况了我直接重新安装了anaconda)
**
解决方案:使用清华镜像源即可pip install tensorflow==1.13.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
4、nvcc -v出现"nvcc fatal : No input files specified; use option --help for more information"
解决方案:nvcc -V
中的V是大写,不是小写??