Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mrob27 opened this issue Nov 9, 2015 · 2 comments
Assignees

Comments

@mrob27
Copy link

mrob27 commented Nov 9, 2015

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)

@mrob27 mrob27 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) Nov 10, 2015
@mrob27
Copy link
Author

mrob27 commented Nov 11, 2015

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

@mrob27 mrob27 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" Nov 11, 2015
@craigcitro
Copy link
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.)

ilblackdragon added a commit to ilblackdragon/tensorflow that referenced this issue Mar 9, 2016
lissyx added a commit to lissyx/tensorflow that referenced this issue Dec 10, 2017
Enable optimizations flags upto AVX
cjolivier01 pushed a commit to Cerebras/tensorflow that referenced this issue Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants