您当前的位置: 首页 >  tensorflow

川川菜鸟

暂无认证

  • 3浏览

    0关注

    969博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

我在pip安装tensorflow时遇到 ERROR: Cannot uninstall ‘wrapt‘. It is a distutils installed project and thu2

川川菜鸟 发布时间:2020-10-12 15:27:35 ,浏览量:3

 

我在安装  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 = https://pypi.tuna.tsinghua.edu.cn/simple

当然也有别的镜像源,其实我觉得还是清华最好,想用别的镜像源你改一下网址就好了,比如:

阿里云 http://mirrors.aliyun.com/pypi/simple/   中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/   豆瓣(douban) http://pypi.douban.com/simple/   清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/   中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

 

 

关注
打赏
1665165634
查看更多评论
立即登录/注册

微信扫码登录

0.2372s