Skip to content

Missing "pip install --upgrade pip" in instructions leads to bogus error "No such file or directory ... setup.py" #46

Closed

Description

@mrob27

I set up a virtualenv and ran ./bin/activate then tried the install command:

(tensorflow) $ ./bin/pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Downloading/unpacking https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
  Downloading tensorflow-0.5.0-py2-none-any.whl (9.8Mb): 9.8Mb downloaded
  Running setup.py egg_info for package from https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
    IOError: [Errno 2] No such file or directory: '/var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-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: '/var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/setup.py'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build
Storing complete log in /Users/munafo/.pip/pip.log
(tensorflow) $ ls -l /var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/tensorflow/tools/pip_package/setup.py 
-rw-r--r--  1 munafo  staff  2574 Nov  9 17:41 /var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/tensorflow/tools/pip_package/setup.py
(tensorflow) $

As shown in the session, there is no /var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/setup.py, but there is a /var/folders/gQ/gQ784XlzFBu-AAhgOvz4Ek+++TI/-Tmp-/pip-emt5Bl-build/tensorflow/tools/pip_package/setup.py

So I suspect pip is failing to interpolate the subdirectory tensorflow/tools/pip_package into the path when trying to launch setup.py.

Here is another report of the same problem on Linux (the question asker is trying to install tensorflow-0.5.0-cp27-none-linux_x86_64.whl , and a comment was added by a user who has Ubuntu 12.04)

Activity

  1. changed the title [-]Mac: tensorflow-0.5.0-py2-none-any.whl attempts to run setup.py from wrong path[/-] [+]Mac: tensorflow-0.5.0-py2-none-any.whl attempts to run setup.py from wrong path (also seen in Linux)[/+] on Nov 10, 2015
  2. mrob27 commented on Nov 11, 2015

    @mrob27
    Author

    I fixed it by typing "pip install --upgrade pip" in the virtualenv (i.e. right after typing "source ./bin/activate"

    This needs to be added to the instructions

  3. changed the title [-]Mac: tensorflow-0.5.0-py2-none-any.whl attempts to run setup.py from wrong path (also seen in Linux)[/-] [+]Missing "pip install --upgrade pip" in instructions leads to bogus error "No such file or directory ... setup.py"[/+] on Nov 11, 2015
  4. craigcitro commented on Nov 12, 2015

    @craigcitro
    Contributor

    Yes -- thanks @mrob27 for figuring out the right fix; we've updated the docs and these instructions will be in the next push.

    (Closing, reopen if needed.)

  5. added a commit that references this issue on Mar 9, 2016
    0c400ff
  6. added a commit that references this issue on Dec 10, 2017
  7. added a commit that references this issue on Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions