首页 > 编程语言 > 详细

安装tensorflow出现的python-setuptools 20.7.0问题

时间:2020-03-05 22:31:09      阅读:695      评论:0      收藏:0      [点我收藏+]

1.问题

ERROR: markdown 3.2.1 has requirement setuptools>=36, but youll have setuptools 20.7.0 which is incompatible.
Installing collected packages: protobuf, numpy, html5lib, bleach, werkzeug, markdown, tensorflow-tensorboard, tensorflow
Successfully installed bleach-1.5.0 html5lib-0.9999999 markdown-3.2.1 numpy-1.18.1 protobuf-3.11.3 tensorflow-1.3.0 tensorflow-tensorboard-0.1.8 werkzeug-1.0.0

 

解决:

1 卸载python-setuptools:
2 sudo apt-get remove python-setuptools
3 sudo apt-get update

因为用apt-get安装的python-setuptools还是20.7.0-1,所以用pip安装: pip2 install setuptools

可成功安装44.0.0版本。

再重新安装tensorflow:

pip --default-timeout=100 install tensorflow==1.3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

 

安装tensorflow出现的python-setuptools 20.7.0问题

原文:https://www.cnblogs.com/Yanfang20180701/p/12420116.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!