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 install issue #3030

Closed
peterd550 opened this issue Aug 4, 2022 · 2 comments
Closed

pip install issue #3030

peterd550 opened this issue Aug 4, 2022 · 2 comments

Comments

@peterd550
Copy link

When I run
pip3 install --upgrade --no-index /tmp/docker-py-2.5.1.tar.gz
I get the following issue

Defaulting to user installation because normal site-packages is not writeable
Processing /tmp/docker-py-2.5.1.tar.gz
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-e1wftyj8/setup.py'"'"'; file='"'"'/tmp/pip-req-build-e1wftyj8/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-blt8jpfq
cwd: /tmp/pip-req-build-e1wftyj8/
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-req-build-e1wftyj8/setup.py", line 12, in
if 'docker-py' in [x.project_name for x in pip.get_installed_distributions()]:
AttributeError: module 'pip' has no attribute 'get_installed_distributions'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@Justintime50
Copy link

Justintime50 commented Aug 11, 2022

It seems this was fixed in v3.3.0? May want to do a fresh install of a newer version?

#2001

@milas
Copy link
Contributor

milas commented Aug 12, 2022

Yes, v2.5.1 is very old. I'd recommend using one of the 6.0.0 betas, which should resolve a lot of issues, particularly around install: pip install docker==6.0.0b2 (find latest on PyPI or GitHub releases)

@milas milas closed this as completed Aug 12, 2022
@milas milas closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2022
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

3 participants