Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Could not install PyGObject
#1
I have installed Python 3.8 on my Win7 computer. It has been installed for all the users in the diretory C:\Program Files. I have also installed MsYs on my computer separately. I have also installed "pycairo" and now I am trying to install PyGObject using the command given below
pip --no-cache-dir install PyGObject

It is giving me the following error message
Error:
gi\gimodule.c: fatal error C1083: Cannot open include file: 'msvc_recommended_pragmas.h': No such file or directory
Now the problem is that the library msvc_recommended_pragmas.h is present in the following location
<InstallDirOfMsys>\mingw64\include\glib-2.0

I want to install PyGObject so that I can make use of GTK and other libraries.

So my query was how do I get Python to realize that there is a library available in some other location? which it has to use to building PyGObject
Reply
#2
did you try without --no-cache-dir?
probably not an issue, but worth trying.
Reply
#3
Yes I am trying the command

pip --no-cache-dir install PyGObject
Reply
#4
I know, I'm asking that you try as: pip install PyGObject without the no cache option
Reply
#5
You most follow this Windows PyGObject.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  fail to upgrade pygobject jiapei100 0 3,086 Aug-16-2018, 10:32 AM
Last Post: jiapei100

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020