离线安装tensorflow 2.x过程中报警cannot uninstall ‘wrapt’(已解决)
当我们在网上下载好tensorflow 2.x的安装包后,可方便离线安装,pip安装方法:
pip install --no-index --find-link="." tensorflow-gpu==2.5.0
过程中报警Cannot uninstall ‘wrapt’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
![在这里插入图片描述](https://img-blog.csdnimg.cn/9c69028e8b0049cd9fe9ee597c31f6b6.jpg?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBAd3h5enBhbmRh,size_20,color_FFFFFF,t_70,g_se,x_16#pic_center) 将离线安装包中的wrapt-1.12.1.tar.gz解压,然后打开wrapt-1.12.1文件夹,在该文件夹下运行 python setup.py install ![在这里插入图片描述](https://img-blog.csdnimg.cn/83f4069259a6432d909f9d8a8c0be648.png#pic) 安装好wrapt-1.12.1后,再重新安装tensorflow
pip install --no-index --find-link="." tensorflow-gpu==2.5.0
即可成功安装!
|