Skip to content

Linux installation problem with VirtualEnv #133

Closed

Description

I'm using virtual-env to install tensorflow. I've successfully created a virtual-env and when trying to install tensorflow using pip, i'm getting this error.
Any suggestions ?? Thanks.

Unpacking /home/ayan/Desktop/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
  Running setup.py egg_info for package from file:///home/ayan/Desktop/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
    IOError: [Errno 2] No such file or directory: '/tmp/pip-ULRUTP-build/setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
  File "<string>", line 16, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-ULRUTP-build/setup.py'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-ULRUTP-build
Storing complete log in /home/ayan/.pip/pip.log

Activity

  1. mrob27 commented on Nov 11, 2015

    @mrob27

    Also happens on Mac: #46
    Also reported on stackexchange: http://stackoverflow.com/questions/33623453/pip-installation-error-no-such-file-or-directory-setup-py where they claim that "with python 2.7.10, python-dev and pip 1.5.6, tensorflow will be successfully installed using the pip method."

    But, as seen below, updating pip did not work for spiderhacker, so I am striking out the rest of this comment. -2015 Nov 13 23:45 UTC

    What version of pip are you using (type "pip --version")
    If you see a version less than 1.5.6, type "pip install --upgrade pip" within your virtualenv to get it to update itself.
    I did this in my system and it worked (but I'm on Mac, so you still need to try it and comment here to tell if it worked)

  2. mrob27 commented on Nov 12, 2015

    @mrob27

    That's kind of odd, since I got it to work in Python 2.7.3. (And it fixed my version of the bug )

    Was virtualenv still activated in your shell session? To be clear, the full command sequence would be:

    # assuming we want to be working within ~/tensorflow
    virtualenv --system-site-packages ~/tensorflow
    cd ~/tensorflow
    source bin/activate
    # we are now "inside the virtual environment", and ./bin is at the beginning of $PATH
    pip --version    # Here I had version 1.1
    pip install --upgrade pip
    pip --version    # ...and now it says 7.1.2
    # In the following use "/cpu/" or "/gpu" as desired
    pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
    # (we would continue with tensorflow setup/testing here)
    # when done, we could exit the shell completely, or just leave virtualenv with this command:
    deactivate
    # Now the prompt and $PATH are back to normal
    
  3. mrob27 commented on Nov 13, 2015

    @mrob27

    Darn, I'm out of ideas. But I will edit my comment above to remove the suggestion that "this worked for me so it should work for you".

  4. vincentvanhoucke commented on Dec 13, 2015

    @vincentvanhoucke
    Contributor

    Did this issue get resolved? A lot of things have changed with 0.6.0.

  5. ghost closed this as completedon Dec 14, 2015
  6. added a commit that references this issue on Sep 14, 2019
    b4cd2ef
  7. added a commit that references this issue on Oct 4, 2019
    4a6216d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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