question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to parse --no-binary when installing psycopg2

See original GitHub issue

Unable to install psycopg2 with option --no-binary. Might be related to this issue? https://github.com/pypa/pipenv/issues/870

Describe your environment
  1. OS Type: Mac OS 10.13.3
  2. Python version: Python 2.7.10
  3. 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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
techalchemycommented, Jul 20, 2018

@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

3reactions
xargcommented, Oct 18, 2018

Thanks @techalchemy just saw your comment on https://github.com/pypa/pipenv/issues/1450:

PIP_NO_BINARY=psycopg2 pipenv install

seems to work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install psycopg2 (pip install psycopg2)
Try this: pip install psycopg2-binary.
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found