AttributeError: ‘module’ object has no attribute ‘main’

How did “people you might know” find you on social software>>>

Build a python 2.7 virtual environment under Linux, activate the environment and install tensorflow with pip to report an error

AttributeError: ‘module’ object has no attribute ‘main’

Solution: run

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

Reference: https://blog.csdn.net/Jiaach/article/details/80188262

Similar Posts: