|
发表于 2023-7-7 18:06:18
|
显示全部楼层
It seems like you are trying to install wxPython and PyGTK on Windows. To resolve the issues you're encountering, please follow these steps:
1. Install the [Microsoft Visual C++ Build Tools ↗](https://visualstudio.microsoft.com/visual-cpp-build-tools/). This step is required because the installation process for some packages, like pygobject , needs to compile C/C++ code on Windows. Unfortunately, there is no easy alternative for this step.
2. After installing the Microsoft Visual C++ Build Tools, open a new Command Prompt or PowerShell window as an administrator and execute the following commands:
- pip install pycairo
- pip install pygobject
复制代码
3. Now that you have installed the required dependencies, you can proceed with the installation of wxPython and PyGTK :
- pip install wxPython
- pip install pygtk
复制代码
Please note that PyGTK is an old and deprecated library. If possible, consider using Gtk from gi.repository (which is provided by the pygobject package you installed earlier) for new projects. |
|