欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-10-04 23:02:31
在linux下建立python 2.7虚拟环境,激活环境后用pip安装tensorflow报错 AttributeError: 'module' object has no attribute 'main' 解决方法:运行 curl https://bootstrap.pypa.io/get-pip ......

在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