AttributeError: 'module' object has no attribute 'main'

在linux下建立python 2.7虚拟环境,激活环境后用pip安装tensorflow报错

AttributeError: 'module' object has no attribute 'main'

解决方法:运行

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py;python get-pip.py 

 

参考:https://blog.csdn.net/Jiaach/article/details/80188262 

 

posted @ 2018-08-29 15:00  woodseye  阅读(358)  评论(0编辑  收藏  举报