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

Pip fails to install into clean virtualenv. #20

Closed
fake-name opened this issue Apr 15, 2018 · 3 comments
Closed

Pip fails to install into clean virtualenv. #20

fake-name opened this issue Apr 15, 2018 · 3 comments

Comments

@fake-name
Copy link

fake-name commented Apr 15, 2018

This happened approximately 12 hours ago.

I have a deploy script which has the following snippet:

python3 -m venv --without-pip venv
wget https://bootstrap.pypa.io/get-pip.py
./venv/bin/python3 get-pip.py
./venv/bin/pip install six

Prior to 12 hours ago, this worked.

Currently, this fails on ./venv/bin/pip install six, because ./venv/bin/python3 get-pip.py no longer results in the ./venv/bin/pip file being created.

Sourcing the venv prior to installing pip also fails to result in a proper install.

I can reproduce this reliably.

Platform: Ubuntu 14.04 LTS, Python 3.4.3.

@fake-name fake-name changed the title pip no longer installs into unsourced virtualenvs Pip failing to install into virtualenv. Apr 15, 2018
@fake-name fake-name changed the title Pip failing to install into virtualenv. Pip failis to install into clean virtualenv. Apr 15, 2018
@fake-name fake-name changed the title Pip failis to install into clean virtualenv. Pip fails to install into clean virtualenv. Apr 15, 2018
@fake-name
Copy link
Author

fake-name commented Apr 15, 2018

Ok, running it with ./venv/bin/python3 get-pip.py --force-reinstall fixes the issue.

Apparently:

  1. Pip/get-pip/something is caching state outside of the virtualenv, because I completely blew away /tmp and ./venv and retried, and it didn't fix the issue.
  2. This appears to also be python get-pip.py fails for pip 10 pip#5220, Running get-pip in an environment with no pip installed gives "requirement already satisfied" #19

Closing in favour of those.

@alex
Copy link
Member

alex commented Apr 15, 2018

This is a dupe of #19 and can be closed.

@fake-name
Copy link
Author

Heh.

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