程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

2023-06(3)

Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determin

发布于2019-08-07 14:21     阅读(1116)     评论(0)     点赞(0)     收藏(2)


pip2 install tensorflow 

安装python27版本的tensorflow的时候报错,报错信息如下:

Installing collected packages: wrapt, tensorflow-estimator, numpy, six, keras-preprocessing, absl-py, astor, funcsigs, mock, backports.weakref, futures, grpcio, setuptools, protobuf, wheel, werkzeug, markdown, tensorboard, google-pasta, gast, termcolor, h5py, keras-applications, tensorflow
  Running setup.py install for wrapt ... done
  Found existing installation: numpy 1.8.0rc1
Cannot uninstall 'numpy'. 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.

解决办法:先执行语句

 sudo pip2 install --upgrade --ignore-installed --install-option '--install-data=/usr/local' numpy

然后重新执行语句

pip2 install tensorflow 

其他类似问题都可这样解决



所属网站分类: 技术文章 > 博客

作者:智慧星辰

链接:https://www.pythonheidong.com/blog/article/11324/4281a2950de93bd67d1d/

来源:python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

0 0
收藏该文
已收藏

评论内容:(最多支持255个字符)