pipenv ignores `PIP_NO_BINARY` and still installs wheel
See original GitHub issueI am trying to run the following command: export PIP_NO_BINARY=1 && pipenv install psycopg2
as it was suggested in https://github.com/pypa/pipenv/issues/1430
But this does not have any effect.
» export PIP_NO_BINARY=1 && pipenv install psycopg2
Installing psycopg2…
Collecting psycopg2
Using cached psycopg2-2.7.4-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Installing collected packages: psycopg2
Successfully installed psycopg2-2.7.4
Adding psycopg2 to Pipfile's [packages]…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (635dd7)!
Please, note that pip
is using cache, let’s turn it off.
» PIP_NO_BINARY=1 PIP_NO_CACHE_DIR=off pipenv install psycopg2
Installing psycopg2…
Collecting psycopg2
Downloading psycopg2-2.7.4-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (1.7MB)
Installing collected packages: psycopg2
Successfully installed psycopg2-2.7.4
Adding psycopg2 to Pipfile's [packages]…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (635dd7)!
What I expect is that pipenv
would install psycopg2
from source. And now it is using wheel.
Describe your environment
- OS Type: macos
- Python version:
3.6.4
- Pipenv version:
9.0.3
Steps to replicate
PIP_NO_BINARY=1 PIP_NO_CACHE_DIR=off pipenv install psycopg2
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:30 (19 by maintainers)
Top Results From Across the Web
Advanced Usage of Pipenv - Read the Docs
Dependencies of wheels provided in a Pipfile will not be captured by $ pipenv lock . There are some known issues with using...
Read more >pipenv Documentation
If pipenv isn't available in your shell after installation, you'll need to add the user base's binary directory to your PATH.
Read more >Making pip installs a little less slow - Python⇒Speed
Installing packages with pip, Poetry, and Pipenv can be slow. Learn how to ensure it's not even slower, and a potential speed-up.
Read more >pipenv-to-requirements - PyPI
pipenv is a great tool to maintain Pipfile, but developers might be stuck with backward compatibility issues for tools and services that still...
Read more >Could not build wheels for _ which use PEP 517 and cannot ...
Sometimes this can be due to a cache issue and the no-binary flag won't work. In which case try pip install <insert package...
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
@OrangeDog I updated to ver
2018.05.18
and it works as you said it would. What I’ve done using this new2018.05.18
version, is the same series of steps that @sobolevn attempts with a different result.Below is a log indicating the issues with the
PIP_NO_BINARY
env var that @sobolevn has experienced no longer seem to be an issue with ver2018.05.18
.@OrangeDog , no, I don’t think I have tried that yet (I believe my version was downloaded before 5/18). I had tried
PIP_NO_BINARY
in the past, to the same result as sobolevn. I’m not at my machine right now, but doesPIP_NO_BINARY=:<specific_package>:
work for you? I need it on a package by package basis.