What to do when psycopg2 throws an error when pipenv lock under Pipenv environment

Background

When I was adding a library to give to heroku, psycopg2 stuck and I got an error with Pipfile lock, so it was a problem

environment

item version
os Ubuntu18.04LTS
python 3.7
pipenv version 2018.11.26

Solution

*** It has not been investigated why it worked, so it is for reference only. *** ***

  1. Install psql

$ sudo apt upgrade
$ sudo apt install postgresql postgresql-contrib

that's all! !! !! (Why? Wakaranainotemokimochiwarui ....)

Recommended Posts

What to do when psycopg2 throws an error when pipenv lock under Pipenv environment
What to do when an error occurs with import _ssl
[Beanstalk] What to do when an error occurs with import uuid
What to do if you get an error when running "certbot renew" in CakePHP environment
[Python] What to do when an error related to SSL authentication is returned
What to do if an error occurs when importing numpy with VScode
What to do if you get an error when trying to load mnist
[OSX] [pyenv] What to do when an SSL error occurs in pip
[python] What to do when an error occurs in send_keys of headless chrome
What to do when SSL error occurs in pip in Windows10, miniconda, VScode environment
What to do if you get an error when installing python with pyenv
[Python] Type Error:'WebElement' object is not iterable What to do when an error occurs
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do when a Remove Error occurs when updating conda
What to do when Ubuntu crashes
What to do when you get an error saying "Name resolution temporarily failed" on linux
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if pip --user returns an error in a virtual environment created with pyenv
I built an environment from centos installation to php source expansion on linux, but what to do when a browser error occurs
What to do if the Pipenv environment is corrupted by updating Homebrew
What to do when pyinstaller: error: argument --add-binary: invalid add_data_or_binary value: appears
[Docker] What to do when error Couldn't find the binary git appears
What to do if pyenv install does not proceed with an error
What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment
[Django] What to do if an Integrity Error occurs when registering data from the management site to the database
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you can't pipenv shell
What to do if you are told "Import Error: cannot import name'HTTPSHandler'" when building a virtual environment using virtualenv
What to do when PermissionError of tempfile.mkstemp occurs
What to do if an error occurs when loading a python project created with poetry into VS Code
Error when trying to install psycopg2 in Python
What to do if an SSL connection error (ssl.SSLError: [SSL: DH_KEY_TOO_SMALL]) occurs on Ubuntu 20.04
What to do if you get an "unknown service" error from your gRPC server
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do if the print command itself causes an error in Maya python
What to do when "Type Error: must be _socket.socket, not socket" appears on GAE
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you run python in IntelliJ and end with an error
[Go 1.13] What to do when unexpected directory layout: appears
[openpyxl] What to do when IllegalCharacterError appears in pandas.DataFrame.to_excel
curl: (60) What to do when Issuer certificate is invalid.
What to do when gdal_merge creates a huge file
What to do when raise ValueError, "unsupported hash type"
What to do when "cannot import name xxx" [Python]
pipenv shell is no longer available ... what to do?
What to do when you can't bind CaboCha to Python
nltk.MaxentClassifier.train () throws an error.
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
When creating a pipenv environment, I got addicted to "Value Error: Not a valid python path"
[AWS] What to do when you want to pip with Lambda
What to do when Japanese is not displayed on matplotlib
What to do when PyCharm font is strange or garbled
What to do when Unalignable boolean Series provided as indexer
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if package installation fails when deploying to heroku
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python
OSError: [Errno 40] What to do when Message too long appears
What to do when "Invalid HTTP_HOST header" appears in Django
ImportError: No module What to do when you are told