tensorflow: pip error: No such file or directory: '/tmp/pip-...-build/setup.py'

I’m getting the following error when trying to install on a GPU desktop using pip as described in the tensorflow setup page:

$ sudo pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
Downloading/unpacking https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
  Downloading tensorflow-0.5.0-cp27-none-linux_x86_64.whl (50.5Mb): 50.5Mb downloaded
  Running setup.py egg_info for package from https://storage.googleapis.com/tensorflow/linux/gpu/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-kYFqUa-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-kYFqUa-build/setup.py'

See this Stackoverflow page that discusses the problem and indicates that a setup.py file is missing in the package.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 23

Commits related to this issue

Most upvoted comments

Upgrading pip to the latest version has solved this issue.

I have pip 9.0.1 installed and still see this error.

I was getting the same issue, and it turned out to be the package was missing a setup.py entirely. Not sure if it’s the same for everyone else tho. (pip 20.1.1)

after pip install --upgrade pip it still not work. I am using ubuntu 12.04 and pip version is 1.0