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 

原文地址:https://www.cnblogs.com/woodseye/p/9554348.html