我试图通过pip安装PyGObject,但是它失败了,出现了给定的错误:
Building wheels for collected packages: pygobject
Building wheel for pygobject (PEP 517) ... error
ERROR: Command errored out with exit status 1:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /n
我正在尝试使用下面的作为参考来创建到vala库的python绑定。
我的初始目录有以下两个文件:
test.vala
using GLib;
namespace Test {
public class Test : Object {
public int sum(int x, int y) {
return x + y;
}
}
}
test.override
%%
headers
#include <Python.h>
#include "pygobject.h"
#include "t
当我键入命令时
brew install pygobject3 --with-python@2 gtk+3
我总是收到错误消息
invalid option --with-python@2
当我想在mac os 10.15下运行gtk+3时,我得到了同样的错误信息。
Namespace Gtk not available
也许10.15版本的MacOS就是这个问题……
gtk+3 version 3.24.12 and pygobject3 Version 3.34.0 are installed.
Installation of homebrew for MacOS
gtk+3 ver
我想安装Accerciser我的操作系统是fedora 16我将软件包'cd‘下载到文件夹中,然后运行'./configure’并获取
checking for PYGOBJECT... no
configure: error: Package requirements (pygobject-3.0 >= PYGOBJECT_REQUIRED) were not met:
No package 'pygobject-3.0' found
Consider adjusting the PKG_CONFIG_PATH environment variabl
我用的是macOS
Python版本: 2.7 / 3.6
pip3 :
$ pip3 install PyGObject
Collecting PyGObject
Could not find a version that satisfies the requirement PyGObject (from versions:)
No matching distribution found for PyGObject
对pip和pip2.x的结果相同
为什么我找不到?
在PyGObject上安装macOS的替代方法是什么?
这并不是一个真正令人愉快的组合,但在大多数情况下确实有效。然而,我在Gio.File上遇到了一个问题。这将始终导致TypeError和:
Python 2.7.3 (default, Apr 10 2012, 12:29:04)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import GObject, Gio
>>
尝试将python web应用部署到heroku,但遇到以下错误:
remote: running build_ext
remote: Package gobject-introspection-1.0 was not found in the pkg-config search path.
remote: Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
remote: to the PKG
我正在尝试用Python运行音频文件:
from playsound import playsound
def main():
playsound('audio.mp3')
main()
但是,我一直收到以下错误:
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/playsound.py", line 55, in _playsoundOSX
from AppKit import NSSound
ImportError: N
因此,我试图将AppKit导入到我的python项目中。我使用的是pyCharm,但是每次尝试导入时,我都会收到以下错误消息:
You are using pip version 6.0.8, however version 6.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting AppKit
Using cached AppKit-0.2.8.tar.gz
Collecting flask (from AppKit)
Us
我正在努力寻找一个仍然相关的教程。从2021年起,virtualenvwrapper是否不再与Mac (OS11.4)相关? 我在打开我的zsh时看到这个 /Library/Developer/CommandLineTools/usr/bin/python3: Error while finding module specification for 'virtualenvwrapper.hook_loader' (ModuleNotFoundError: No module named 'virtualenvwrapper')
virtualenvwrappe
我在python 3.6 (在Xubuntu 16.04中)下安装了ipython和matplotlib和pip (9.0.1),但当我尝试绘制一些东西时,没有显示任何图像。
使用ipython3 --matplotlib qt启动ipython会出现以下错误:
ImportError: Matplotlib qt-based backends require an external PyQt4, PyQt5,
or PySide package to be installed, but it was not found.
我尝试使用pip安装这些程序,但失败了:
$ pip3.6 insta
when i run the command i have this error message
$gnuhealth@ghealth:~ $ pip3 install --user --upgrade gnuhealth-client
在pkg-config搜索路径中找不到cairo-gobject包。
Perhaps you should add the directory containing `cairo-gobject.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo-gobj
我需要为windows编写一个python3程序,并且我想在GNU/Linux中使用gtk+3 for GUI,我使用python3和pygobject3,但现在我找不到任何用于windows、x86或x86_64的二进制版本的pygobject3!只有我发现最新的windows版本是2.28!在此链接中,
我在哪里可以找到用于windows的pygobject3,以及如何安装和使用它
感谢所有人,