Win10离线安装Anaconda3+cuda_10.1 +cudnn-10.1+tensorflow-2.3.1+python3.7+VS 2019附最全依赖包和错误解决方式

本文详细介绍了如何在Win10环境下进行离线安装Anaconda3、CUDA 10.1、cudnn 10.1、Tensorflow 2.3.1和Python3.7,包括所需依赖包的完整列表、安装步骤、解决各种错误的方法,特别是针对离线环境中Cannot uninstall 'wrapt'的问题给出了解决方案,并最终解决了“找不到指定模块”的错误。
摘要由CSDN通过智能技术生成

Win10离线安装Anaconda3+cuda_10.1+cudnn-10.1+tensorflow-2.3.1+python3.7+VS 2019附最全依赖包和错误解决方式

题外:生了好久的手,因为种种原因,又重新开始学起了深度学习,先从安装必修课走起,因为是离线安装环境,确实是折腾得我不轻啊,前前后后差不多得5天吧,总算安装成功了。

1.依赖包(最全)

之前在别的文章中见到有人分享了离线安装tensorflow所依赖的包,本人实际安装过程中又多出了一些,可能跟安装各个组件的版本有关系,本人安装的是Anaconda3-5.3.1-Windows-x86_64.exe,cuda_10.1.243_426.00_win10.exe,cudnn-10.1-windows10-x64-v7.6.2.24,tensorflow-2.3.1-cp37-cp37m-win_amd64.whl,依赖包共38个,整理如下:

可在anaconda3 promt中查询当前已经有哪些包已安装了,没有安装的去https://pypi.org/search/?q=pbr下载,将下载的whl包拷贝到电脑上按顺序安装,版本要基本与上述列出的一致,过高或低都有可能不匹配。其中部分要注意操作系统是32位还是64位的,python版本也要匹配,必须一致才能安装。部分包与python版本也有关系,要下载对应的版本。

注:本人选用的anaconda相比于tensorflow版本应该是低了,因此上述依赖包都是一一下载安装,可选更新的版本进行尝试,应该会少一些需要的依赖包。

 

2.部分安装过程如下:

(DL) D:\software\专业软件\compute>pip install mock-4.0.3-py3-none-any.whl
Processing d:\software\专业软件\compute\mock-4.0.3-py3-none-any.whl
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Installing collected packages: mock
Successfully installed mock-4.0.3

(DL) D:\software\专业软件\compute>pip install protobuf-3.15.3-cp37-cp37m-win32.whl
protobuf-3.15.3-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.

(DL) D:\software\专业软件\compute>pip install protobuf-3.15.3-cp37-cp37m-win_amd64.whl
Processing d:\software\专业软件\compute\protobuf-3.15.3-cp37-cp37m-win_amd64.whl
Requirement already satisfied: six>=1.9 in c:\programdata\anaconda3\lib\site-packages (from protobuf==3.15.3) (1.11.0)
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Installing collected packages: protobuf
Successfully installed protobuf-3.15.3

(DL) D:\software\专业软件\compute>pip install PyHamcrest-2.0.2-py3-none-any.whl
Processing d:\software\专业软件\compute\pyhamcrest-2.0.2-py3-none-any.whl
Installing collected packages: PyHamcrest
Successfully installed PyHamcrest-2.0.2

(DL) D:\software\专业软件\compute>pip install  wheel-0.36.2-py2.py3-none-any.whl
Processing d:\software\专业软件\compute\wheel-0.36.2-py2.py3-none-any.whl
Installing collected packages: wheel
  Found existing installation: wheel 0.31.1
    Uninstalling wheel-0.31.1:
      Successfully uninstalled wheel-0.31.1
Successfully installed wheel-0.36.2

(DL) D:\software\专业软件\compute>pip install funcsigs-1.0.2-py2.py3-none-any.whl
Processing d:\software\专业软件\compute\funcsigs-1.0.2-py2.py3-none-any.whl
Installing collected packages: funcsigs
Successfully installed funcsigs-1.0.2

(DL) D:\software\专业软件\compute>pip install pbr-5.5.1-py2.py3-none-any.whl
Processing d:\software\专业软件\compute\pbr-5.5.1-py2.py3-none-any.whl
Installing collected packages: pbr
Successfully installed pbr-5.5.1

凡是安装成功的包都会提示Successfully installed …。

3.缺少报错

缺少相应的包时,系统会尝试联网下载,如果离线安装就会报以下错误:

Collecting cached-property; python_version <"3.8" (from h5py==3.1.0)
 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000002851A978710>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/cached-property/
  Retrying (Retry(total=3, connect&#
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值