我正在尝试安装名为“dbt”的软件包,但收到一条很长的错误消息。
我用谷歌搜索了导致我找到一个线程的问题。在这里,我试图过滤掉那些与我相关的答案,我在 Windows 上。我将 pip 升级到了最新版本。我试图安装没有帮助的“python-dev-tools”。我觉得有点卡住了。有什么建议么?我在下面添加错误消息以供参考
先感谢您!
错误信息:
错误:命令出错,退出状态为 1:命令:'c:\users\46700\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\46700\AppData\Local\Temp\pip-install-4tzr2bw2\psycopg2\setup.py'"'"'; file ='"'"'C:\Users\46700\AppData\Local\Temp\pip-install-4tzr2bw2\psycopg2\setup.py'"'"';f=getattr(tokenize, '"'"'open' "'"', open)( file );code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"'); f.close();exec(编译(代码、文件, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\46700\AppData\Local\Temp\pip-install-4tzr2bw2\psycopg2\pip-egg-info' cwd : C:\Users\46700\AppData\Local\Temp\pip-install-4tzr2bw2\psycopg2\ 完整输出(23 行):运行 egg_info 创建 C:\Users\46700\AppData\Local\Temp\pip-install-4tzr2bw2 \psycopg2\pip-egg-info\psycopg2.egg-info 写作 C:\Users\46700\AppData\Local\Temp\pip-install-4tzr2bw2\psycopg2\pip-egg-info\psycopg2.egg-info\PKG- INFO 将 dependency_links 写入 C:\Users\46700\AppData\Local\Temp\pip-install-4tzr2bw2\psycopg2\pip-egg-info\psycopg2.egg-info\dependency_links.txt 将顶级名称写入 C:\Users \46700\AppData\Local\Temp\pip-install-4tzr2bw2\psycopg2\pip-egg-info\psycopg2.egg-info\top_level.txt 写入清单文件'C:\Users\46700\AppData\Local\Temp\pip-install-4tzr2bw2\psycopg2\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>).
----------------------------------------
错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出。