pip installation error "No such file or directory: setup.py"
Solution 1
from https://github.com/tensorflow/tensorflow/issues/56
The command to type is "pip install --upgrade pip", and this should be added to the instructions right after where they tell the user to "source bin/activate"
Solution 2
Try upgrade protobuf with pip install:
sudo pip install --upgrade protobuf
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/protobuf-3.0.0b2.post2-cp27-none-any.whl
worked for me. The documentation has provided many solutions for various installation problems.
Solution 3
Tensorflow requires python -V 2.7. Since, lot of machine use the stable 2.6 version of python for their system build I would recommend parallel/alternative install of python 2.7. Then you can install pip with 2.7 version python interpreter. Please see below:
#sudo wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
#sudo python2.7 ez_setup.py
#easy_install-2.7 pip
#sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
Zay Maung Maung Aye
Updated on May 22, 2020Comments
-
Zay Maung Maung Aye almost 4 years
I'm getting installation error because pip couldn't find setup.py.
sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
I get this error message.
Downloading/unpacking https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl Downloading tensorflow-0.5.0-cp27-none-linux_x86_64.whl (10.9Mb): 10.9Mb downloaded Running setup.py egg_info for package from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl Traceback (most recent call last): File "<string>", line 14, in <module> IOError: [Errno 2] No such file or directory: '/tmp/pip-GdGgbz-build/setup.py' Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 14, in <module> IOError: [Errno 2] No such file or directory: '/tmp/pip-GdGgbz-build/setup.py'
Can anyone tell me how to solve this problem?
Thanks.