Unable to parse --no-binary when installing psycopg2
See original GitHub issueUnable to install psycopg2 with option --no-binary
. Might be related to this issue? https://github.com/pypa/pipenv/issues/870
Describe your environment
- OS Type: Mac OS 10.13.3
- Python version: Python 2.7.10
- Pipenv version: pipenv, version 9.0.3
Expected result
Describe what you expected.
pipenv install "--no-binary psycopg2 psycopg2"
--> pip install --no-binary psycopg2 psycopg2
Actual result
$ pipenv install “–no-binary psycopg2 psycopg2” --verbose Installing --no-binary psycopg2 psycopg2… ⠋Installing ‘–no-binary psycopg2 psycopg2’ WARNING: Invalid requirement, parse error at “‘–no-bin’” ABORTING INSTALL… You will have to reinstall any packages that failed to install. You may have to manually run pipenv lock when you are finished.
Steps to replicate
$ pipenv --three $ pipenv install “–no-binary psycopg2 psycopg2”
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
psycopg2 in python 2 Code Example - Code Grepper
You may install a binary package by installing 'psycopg2-binary' from PyPI. If you want to install psycopg2 from source, please install the packages...
Read more >[Fixed] ModuleNotFoundError: No module named 'psycopg2 ...
The most frequent source of this error is that you haven't installed psycopg2-binary explicitly with pip install psycopg2-binary .
Read more >PyInstaller Documentation - Read the Docs
If the pip setup fails to build a bootloader, or if you do not use pip to install, ... Additional non-binary files or...
Read more >Release 0+untagged.50.g9a95a2f.dirty Modin contributors
If you already installed Modin on your machine, you can skip this section. ... join slower than Pandas, Dask failed to support join...
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
@dfee this doesn’t get dropped through to pip and it’s not a valid pipenv argument. Pipenv doesn’t just function as a wrapper around pip, it is a separate tool and has separate options-- you will have to set it as an environment variable per the pip documentation:
export PIP_NO_BINARY=:all: && pipenv install psycopg2
edit to clarify instruction
Thanks @techalchemy just saw your comment on https://github.com/pypa/pipenv/issues/1450:
PIP_NO_BINARY=psycopg2 pipenv install
seems to work