简体   繁体   English

在pycharm中安装pyGObject有错误

[英]installing pyGObject in pycharm has an error

while i'm trying to install pyGObject in my Pycharm.当我试图在我的 Pycharm 中安装 pyGObject 时。 it does not work.这是行不通的。 and has an error :并有一个错误: 在此处输入图片说明

and the output command :和输出命令:

Collecting PyGObject
  Using cached https://files.pythonhosted.org/packages/8c/1f/76533985b054473ef6ab1ba4d9c00d62da502f8b43d3171ae588ec81ae93/PyGObject-3.30.4.tar.gz
Collecting pycairo>=1.11.1 (from PyGObject)
  Using cached https://files.pythonhosted.org/packages/a6/54/23d6cf3e8d8f1eb30e0e58f171b6f62b2ea75c024935492373639a1a08e4/pycairo-1.18.0.tar.gz
Installing collected packages: pycairo, PyGObject
  Running setup.py install for pycairo: started
    Running setup.py install for pycairo: finished with status 'error'
    Complete output from command C:\Users\asus\PycharmProjects\Testt\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\asus\\AppData\\Local\\Temp\\pycharm-packaging\\pycairo\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\asus\AppData\Local\Temp\pip-record-tyl1chno\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\asus\PycharmProjects\Testt\venv\include\site\python3.4\pycairo:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.4
    creating build\lib.win-amd64-3.4\cairo
    copying cairo\__init__.py -> build\lib.win-amd64-3.4\cairo
    copying cairo\__init__.pyi -> build\lib.win-amd64-3.4\cairo
    copying cairo\py.typed -> build\lib.win-amd64-3.4\cairo
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    building 'cairo._cairo' extension
    error: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279

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

my python version is 3.4.8 and working in windows 8.1我的 python 版本是 3.4.8 并且在 Windows 8.1 中工作

The problem is clearly mentioned: error: Microsoft Visual C++ 10.0 is required .问题很明显: error: Microsoft Visual C++ 10.0 is required

You will need to install the required windows software before you install the module.在安装模块之前,您需要安装所需的 Windows 软件。

You can download Microsoft Visual C++ 10.0 from here .您可以 从这里下载 Microsoft Visual C++ 10.0

In case your system already has another installation , you can find the workaround here .如果您的系统已经有其他安装,您可以在此处找到解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM