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' isn't always the python we're running under #4920

Closed
wants to merge 1 commit into from
Closed

'pip' isn't always the python we're running under #4920

wants to merge 1 commit into from

Conversation

jcshort
Copy link

@jcshort jcshort commented Jun 13, 2017

On distributions that allow parallel python2 and python3 installation, the pip binary may not be the python we're running under. Specifically, we ran into a case where we needed docker-py in python2 to support a specific version of Ansible, and decided to install docker-compose via python3 pip to avoid a collision. Much to our chagrin, python3 docker-compose continued to complain about docker-py, because of its naive usage of pip. And yes, I hear you when you say virtualenv.

Signed-off-by: Jason Short <jason.short@wpengine.com>
@shin- shin- added this to the 1.15.0 milestone Jun 15, 2017
@docker docker deleted a comment from GordonTheTurtle Jun 23, 2017
@shin-
Copy link

shin- commented Jun 23, 2017

Unfortunately that would break our binary distribution (where sys.executable == 'docker-compose').

I'm afraid you'll have to ignore the warning

@shin- shin- closed this Jun 23, 2017
@shin- shin- removed this from the 1.15.0 milestone Jun 23, 2017
@shin- shin- mentioned this pull request Jul 7, 2017
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

Successfully merging this pull request may close these issues.

3 participants