【发布时间】:2019-12-19 14:01:46
【问题描述】:
我无法安装 psycopg2。我尝试将数据库从 sqlite 更改为 postgesql,但总是得到相同的错误。我还尝试通过项目解释器而不是我的终端安装它,但得到:
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$
【问题讨论】:
标签: python django postgresql pycharm