Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip installation error "No such file or directory: setup.py"

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.

like image 472
Zay Maung Maung Aye Avatar asked Nov 10 '15 05:11

Zay Maung Maung Aye


People also ask

Why is pip install not working in Python?

One of the most common problems with running Python tools like pip is the “not on PATH” error. This means that Python cannot find the tool you're trying to run in your current directory. In most cases, you'll need to navigate to the directory in which the tool is installed before you can run the command to launch it.

How do I manually install pip in Python?

Step 1: Download the get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as python is installed. Step 2: Change the current path of the directory in the command line to the path of the directory where the above file exists. Step 4: Now wait through the installation process. Voila!

Is setup py install deprecated?

py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. I found a very detailed write-up explaining this issue: "Why you shouldn't invoke setup.py directly" (October 2021).

What is the command to install pip?

Run python get-pip.py . 2 This will install or upgrade pip. Additionally, it will install setuptools and wheel if they're not installed already.


1 Answers

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"

like image 191
pageman Avatar answered Sep 21 '22 09:09

pageman