ModuleNotFoundError: No module named 'pip.download'
See original GitHub issue- Pip version: 10.0.0
- Python version: 3.6.4
- Operating system: Ubuntu 14.04
Description:
pip fails to install the package from git repository specified by the following requirements.txt
line:
git+https://github.com/Dmitri-Sintsov/django-jinja-knockout.git
Circle CI test, which used to work in a long time suddenly is broken. Why pip.download
module is not available anymore and how can I fix that in my test script?
Please see the log here: https://circleci.com/gh/Dmitri-Sintsov/django-jinja-knockout/353
What I’ve run:
# Install pyenv to use exact version of Python.
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
pyenv init -
pyenv install 3.6.4
# Version of Python installed in the python:latest-browsers image.
python3 --version
# Version of Python used to run the tests.
$(pyenv root)/versions/3.6.4/bin/python --version
# https://stackoverflow.com/questions/27849412/permissionerror-with-pip3
$(pyenv root)/versions/3.6.4/bin/python -m pip install -U pip wheel tox tox-pyenv setuptools --user
$(pyenv root)/versions/3.6.4/bin/python -m tox -r -e py36-django-20
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6 (5 by maintainers)
Top Results From Across the Web
No module named 'pip.download' when trying to install Python ...
When trying to install Numpy and other packages using pip. I get a message saying ModuleNotFoundError: No module named 'pip.download' .
Read more >[Fixed] ModuleNotFoundError: No module named 'pip' - Finxter
How to Fix “ModuleNotFoundError: No module named 'pip'” in PyCharm · Open File > Settings > Project from the PyCharm menu. · Select...
Read more >ModuleNotFoundError: No module named 'pip' in Python
The Python "ModuleNotFoundError: No module named 'pip'" occurs when pip is not installed in our Python environment. To solve the error, ...
Read more >ModuleNotFoundError: No module named 'pip' - RoseIndia.Net
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'pip' How to remove the ModuleNotFound.
Read more >python 3.8 'No module named pip' - Biostars
Download get-pip.py script to install pip: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py. Install pip: python3 get-pip.py. Install biopython:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Of course people won’t understand that, if you’re violating the usual conventions in Python that
name
is public and_name
is not. Many devs just RTFS, it’s not practical to double check every name used is a documented feature.Anyway, I found that as long as you enter/exit a
PipSession
context properly then using the library code actually worked pretty well! Sure, it was a bit annoying to have to monkeypatch to disable progress bars and redirect logger configuration and stuff, but there was some very good and useful stuff in there that is not really usable from the CLI. Anyone who expected thread-safety here is expecting way too much.I honestly don’t think it would be too hard to move some useful bits into public APIs and make the logging config / output stream handling a bit saner, and am happy to contribute some time to the project if there’s any interest in moving things in that direction.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.