-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
MemoryError: needs a '--no-cache-dir' install option #451
Comments
If we were going to do this, we'd make it default for everyone, or use an environment variable, which i'm mildly opposed to doing. |
open an issue with pip, to see if they'll honor an environment variable for this. |
Just as a note, I believe pip will support setting this in pip.conf. I'd look into that as a possible option. |
Just to add on to @nateprewitt I do believe pip.conf supports this setting. |
As a workaround, I type the following in the terminal instead of using the pip.conf file: $> export PIP_NO_CACHE_DIR=false It will work. Hope it will help those who read this thread. reference: https://pip.pypa.io/en/stable/user_guide/#configuration |
Fails with a Memory Error when using pipenv install on a machine without large memory - e.g. a minimal docker image, (although it appears to have adequate memory for most development - 800Mb / 1Gb available, and the same package works ok on most other environments) - see stack trace below
It appears to be a problem with pip itself.
Excessive memory use when caching large packages #2984
Stack overflow: memory-error-while-using-pip-install-matplotlib
The recommended approach, pip install --no-cache-dir can be used as a workaround to allow this to run without reading the whole package into memory.
Is it possible to supply that argument using pipenv? Are there any other ways to fix it?
Pipfile
MemoryError
The text was updated successfully, but these errors were encountered: