在 Windows 上安装此软件包需要 Pycharm 错误“pkg-config" [英] Pycharm error 'pkg-config' is required to install this package on Windows

查看:112
本文介绍了在 Windows 上安装此软件包需要 Pycharm 错误“pkg-config"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 Windows Pycharm 中安装软件包时出现此错误

When I try to install a package in Windows Pycharm I get this error

Collecting secp256k1 (from sawtooth-signing->sawtooth-sdk==1.0.1)
  Using cached secp256k1-0.13.2.tar.gz
    Complete output from command python setup.py egg_info:
    'pkg-config' is required to install this package. Please see the README for details.

    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pycharm-packaging\secp256k1\

我运行 pip install pkgconfig 并正确安装,但 Pycharm 失败并出现相同的错误.我按照这里的说明How to install pkg config in windows? 但是我仍然收到错误.我怎样才能克服这个问题并安装 pkg-config?

I ran pip install pkgconfig and it installed correctly but Pycharm fails with this same error. I followed the directions here How to install pkg config in windows? but I still receive the error. How can I overcome this and install pkg-config?

推荐答案

按照 link,您还必须将该文件夹添加到您的环境变量路径中.

Once you've downloaded pkgconfig as described in your link, you must also add the folder to your environment variables path.

就我而言:

  1. 我将 pkgconfig 下载并解压到 C:\Program Files (x86)\
  2. 我将 C:\Program Files (x86)\pkg-config_0.26-1_win32\bin 添加到我的路径中
  3. 我也将所需的 .dll 文件放在 bin 文件夹中.

请记住,您必须重新启动才能使对路径的更改生效.

Keep in mind you will have to restart in order for the changes to path to be effective.

这篇关于在 Windows 上安装此软件包需要 Pycharm 错误“pkg-config"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆