问题描述
我无法让 python 识别已安装 pkg-config。最终目标是能够下载 python-binance-chain 库:https://github.com/sammchardy/python-binance-chain 但此时当我使用 pip 安装库时,我收到以下错误消息:
ERROR: Command errored out with exit status 1:
command: 'c:\users\jpeterson\appdata\local\programs\python\python38-32\python.exe' -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'C:\\Users\\jpeterson\\AppData\\Local\\Temp\\pip-install-0459uu9t\\secp256k1_ba55524266274c10b617991dff5a4d87\\setup.py'"'"'; __file__='"'"'C:\\Users\\jpeterson\\AppData\\Local\\Temp\\pip-install-0459uu9t\\secp256k1_ba55524266274c10b617991dff5a4d87\\setup.py'"'"';f=getattr(tokenize,'"'"'open'"'"',open)(__file__);code=f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\jpeterson\AppData\Local\Temp\pip-pip-egg-info-fzc7jgqc'
cwd: C:\Users\jpeterson\AppData\Local\Temp\pip-install-0459uu9t\secp256k1_ba55524266274c10b617991dff5a4d87\
Complete output (1 lines):
'pkg-config' is required to install this package. Please see the README for details.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
- pkg-config_0.26-1_win32
- glib_2.28.8-1_win32
- gettext-runtime_0.18.1.1-2_win32
但是,我不知道他们需要在哪里让 python 识别已经安装了 pkg-config。我参考了以下 stackoverflow 查询:How to install pkg config in windows? 但理想情况下不必安装许多不同的工具,尤其是考虑到我不确定它们是否能够实现安装 python-binance-chain 库的最终目标。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)