安装TensorFlow时,为何无法卸载由distutils安装的`wrapt`包?
- 内容介绍
- 文章标签
- 相关推荐
本文共计308个文字,预计阅读时间需要2分钟。
我在安装pip install tensorflow时遇到了问题,错误信息显示Cannot uninstall 'wrapt'。It is a distutils installed project,解决方法是运行pip install -U --ignore-installed wrapt。
我在安装 pip install tensorflow时遇到了这样的问题,报错如标题wrapt不能导入
问题:ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thu2
解决方案:
pip install -U --ignore-installed wrapt enum34 simplejson netaddr
安装好后,再用pip install tensorflow就安装好了。
顺便介绍一下镜像源的修改,因为我在解决问题时想过是不是镜像源问题。
我把自己的镜像源改为清华镜像源,这个很简单,就建立一个pip.ini的文件夹,把如下复制粘贴进去,保存就好:
[global]
index-url = pypi.tuna.tsinghua.edu.cn/simple
当然也有别的镜像源,其实我觉得还是清华最好,想用别的镜像源你改一下网址就好了,比如:
阿里云 mirrors.aliyun.com/pypi/simple/ 中国科技大学 pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) pypi.douban.com/simple/ 清华大学 pypi.tuna.tsinghua.edu.cn/simple/ 中国科学技术大学 pypi.mirrors.ustc.edu.cn/simple/
本文共计308个文字,预计阅读时间需要2分钟。
我在安装pip install tensorflow时遇到了问题,错误信息显示Cannot uninstall 'wrapt'。It is a distutils installed project,解决方法是运行pip install -U --ignore-installed wrapt。
我在安装 pip install tensorflow时遇到了这样的问题,报错如标题wrapt不能导入
问题:ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thu2
解决方案:
pip install -U --ignore-installed wrapt enum34 simplejson netaddr
安装好后,再用pip install tensorflow就安装好了。
顺便介绍一下镜像源的修改,因为我在解决问题时想过是不是镜像源问题。
我把自己的镜像源改为清华镜像源,这个很简单,就建立一个pip.ini的文件夹,把如下复制粘贴进去,保存就好:
[global]
index-url = pypi.tuna.tsinghua.edu.cn/simple
当然也有别的镜像源,其实我觉得还是清华最好,想用别的镜像源你改一下网址就好了,比如:
阿里云 mirrors.aliyun.com/pypi/simple/ 中国科技大学 pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) pypi.douban.com/simple/ 清华大学 pypi.tuna.tsinghua.edu.cn/simple/ 中国科学技术大学 pypi.mirrors.ustc.edu.cn/simple/

