0

I can not install psycopg2. I try to change the DB from sqlite to postgesql but get always the same error. I also tried to install it via the project interpreter instead of my terminal but get :

python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.

If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.

(venv) localhost:mysite Sergio$ pip install psycopg2
bash: /Users/Sergio/PycharmProjects/#WE_GRAPPLE/venv/bin/pip: /Users/Sergio/PycharmProjects/#WE_GRAPPLE/venv/bin/python: bad interpreter: Permission denied
(venv) localhost:mysite Sergio$
furas
  • 95,376
  • 7
  • 74
  • 111
Sergio.py
  • 31
  • 1

1 Answers1

0

make sure you have Permission to pip, you can change to root

su root 

enter your root password and then

pip install psycopg2
everfight
  • 400
  • 2
  • 9