win10 安装tensorflow 报错“ERROR: Failed building wheel for wrapt”解决办法
今天打算在win10下安装cuda和tensorflow-gpu, 用pip install tensorflow-gpu安装时出现以下错误:
C:\WINDOWS\system32>pip install tensorflow-gpu
Collecting tensorflow-gpu
Using cached
。。。。。。。。。。。。。。。。。。。。
Building wheels for collected packages: wrapt
Building wheel for wrapt (setup.py) … error
ERROR: Command errored out with exit status 1:
。。。。。。。。。。。。。。。。。。。。
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
----------------------------------------
ERROR: Failed building wheel for wrapt
Running setup.py clean for wrapt
Failed to build wrapt
Installing collected packages: wrapt, tensorflow-gpu
Running setup.py install for wrapt … error
ERROR: Command errored out with exit status 1:
。。。。。。。。。。。。。。。。。。。。。。。。
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
----------------------------------------
ERROR: Command errored out with exit status 1:
解决办法:
1、下载对应python版本的wraptxxx.whl:https://www.lfd.uci.edu/~gohlke/pythonlibs/#wrapt
2、安装: pip install 刚刚下载whl文件绝对路径
3、然后再重新安装tensorflow,成功。
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)