(注:我创建的虚拟环境叫做tensorflow1.0)
问题1:原本1.13.0对应的cudatoolkit=10.1,cudnn=7.4,但是运行conda install cudnn=7.4
,无法下载
解决方法:改用conda install cudnn=7.6
,同样可以用,且不会报错
问题2:出现:TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file……
解决方法:
Step1:打开CMD输入activate tensorflow1.0
进入激活环境
Step2:在激活环境中输入pip uninstall protobuf
Step3:继续输入pip install protobuf==3.20.1
问题3:出现 dtypes.py:516: FutureWarning: Passing (type, 1) or '1type'
解决方法:
Step1:打开CMD输入activate tensorflo1.0
进入激活环境
Step2:先卸载当前版本的numpy :pip uninstall numpy
Step3:再安装低版本的numpy:pip install numpy==1.16.0