Python 无法识别 pkg-config 已安装

时间:2021-01-23 15:01:49

标签: python windows pip pkg-config binance

我无法让 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 文件:

  1. pkg-config_0.26-1_win32
  2. glib_2.28.8-1_win32
  3. gettext-runtime_0.18.1.1-2_win32

但是,我不知道他们需要在哪里让 python 识别已经安装了 pkg-config。我参考了以下 stackoverflow 查询:How to install pkg config in windows? 但理想情况下不必安装许多不同的工具,尤其是考虑到我不确定它们是否能够实现安装 python-binance-chain 库的最终目标。

0 个答案:

没有答案
相关问题