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

python学习网 2018-08-30 14:24:02

在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 

 

阅读(2275) 评论(0)