pip3 install XXX加快下载速度
通常安装是使用国外的源,所以较慢;我们可以使用国内的源进行提速:
TensorFlow官网下载地址:https://pypi.org/project/tensorflow/#files
豆瓣源:
pip install tensorflow -i https://pypi.douban.com/simple
或者:
pip install tensorflow-2.3.1-cp38-cp38-win_amd64.whl -i https://pypi.douban.com/simple
清华大学源:
pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple
腾讯源:
pip install tensorflow -i https://mirrors.cloud.tencent.com/pypi/simple
安装opencv(cv2或cv3)同理:
pip3 install opencv-python -i https://pypi.douban.com/simple
安装psutil同理:
pip3 install psutil -i https://pypi.douban.com/simple
tensorflow2.x 报错 Could not load dynamic library ‘cudart64_101.dll’
将下载好后的cudart64_101.dll’放到64位windows的路径C:\Windows\System32下即可