pipenv shell psycopg2 package install failed code example
Example: pipenv an error occurred while installing psycopg2==2.8.4
1. Purge the virtualenv by pipenv --rm
2. Install binary version: pipenv install psycopg2-binary
1. Purge the virtualenv by pipenv --rm
2. Install binary version: pipenv install psycopg2-binary