配置搭建深度学习环境 Python3.6 +CUDA10.0 + Tensorflow 1.14.0


先参考写的

WIN10搭建深度学习环境 GTX1080+CUDA9.0+cuDNN7.0+Python3.6+Tensorflow1.6.0

CUDA和Tensorflow版本需要搭配使用,具体怎么配对,请度娘

这篇文章用的是CUDA9.0+ Tensorflow1.6,

本文使用CUDA10.0 + Tensorflow 1.14.0

 

1.Pip使用Tsing镜像:

pip install tensorflow-gpu==1.14.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install tensorflow-gpu==1.14.0 --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple  更新使用

 

2. 'No module named 'lib.utils.cython_bbox'

这个问题的根源是 lib.utils 下没有cython_bbox这个文件可以import,只有一个cython_bbox.pyx文件;

pyx文件是用Cython写的类似C语言风格的文件,只有通过编译脚本setup.py编译后才能转换成python可以调用的文件;

因此我们首先在终端进入 /lib/utils 文件夹,运行命令即可:

python setup.py build_ext --inplace

 

3.安装 tensorflow 1.14 UnicodeDecodeError: 'utf-8' codec can't decode ## invalid start byte的问题之解决

File "C:\DeepLearning\Anaconda3\envs\tensorflow\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str
    return s.decode('utf_8')

找到__init__.py,使用Notepad++打开,

return s.decode(sys.__stdout__.encoding)
应改为
return s.decode('cp936')

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM