have_directory_for_build AssertionError when installing with --no-cache-dir (19.0.1)
See original GitHub issue- pip version: 19.0.1
With the 19.0.1 release, some people are still reporting an AssertionError
when installing with --no-cache-dir
similar to the one in #6158. This issue is for the 19.0.1-specific issue as it is narrower in scope.
Here are details for a couple reports: https://github.com/pypa/pip/issues/6158#issuecomment-456882072 and https://github.com/pypa/pip/issues/6158#issuecomment-456949839
The traceback looks like this:
Exception:
Traceback (most recent call last):
File "/mnt/jenkins/workspace/venv/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main
status = self.run(options, args)
File "/mnt/jenkins/workspace/venv/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 346, in run
session=session, autobuilding=True
File "/mnt/jenkins/workspace/venv/local/lib/python2.7/site-packages/pip/_internal/wheel.py", line 886, in build
assert have_directory_for_build
AssertionError
Some work-arounds (feel free to add to the list):
- Use pip version 18.1.
- Pass
--no-use-pep517
in your invocation. - See issue #6158 for some other possibilities.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:26
- Comments:18 (10 by maintainers)
Top Results From Across the Web
Trying to update OctoPrint on OctoPi 0.16 gives me an ...
You should consider upgrading via the 'pip install --upgrade pip' command. ... AssertionError when installing with --no-cache-dir (19.0.1).
Read more >What is pip's `--no-cache-dir` good for? - Stack Overflow
Cached is: store away in hiding or for future use; Used for. store the installation files( .whl , etc) of the modules that...
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 FreeTop 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
Top GitHub Comments
pip 19.0.2 has been released with a fix for this.
Easily reproducable in docker: