我尝试安装psycopg2
pip安装psycopg2 结果 -bash:pip:找不到命令
pip install django psycopg2 结果 -bash:pip:找不到命令
pip3安装django psycopg2 结果
收集django 使用缓存的https://files.pythonhosted.org/packages/39/b0/2138c31bf13e17afc32277239da53e9dfcce27bac8cb68cf1c0123f1fdf5/Django-2.2.3-py3-none-any.whl 收集psycopg2 使用缓存的https://files.pythonhosted.org/packages/5c/1c/6997288da181277a0c29bc39a5f9143ff20b8c99f2a7d059cfb55163e165/psycopg2-2.8.3.tar.gz 来自命令python setup.py egg_info的完整输出: 运行egg_info 创建pip-egg-info / psycopg2.egg-info 编写pip-egg-info / psycopg2.egg-info / PKG-INFO 将dependency_links写入pip-egg-info / psycopg2.egg-info / dependency_links.txt 将顶级名称写入pip-egg-info / psycopg2.egg-info / top_level.txt 编写清单文件“ pip-egg-info / psycopg2.egg-info / SOURCES.txt”
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
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.
For further information please check the 'doc/src/install.rst' file (also at
<http://initd.org/psycopg/docs/install.html>).
----------------------------------------
命令“ python setup.py egg_info”在/ private / var / folders / w3 / c440kx852_ngw54hg111zdmh0000gn / T / pip-install-fck7_ffz / psycopg2 /中失败,错误代码为1 您正在使用pip版本19.0.3,但是可以使用版本19.1.1。 您应该考虑通过“ pip install --upgrade pip”命令进行升级。