pip install PyGObject under a virtual environment on Windows
Hi, I am trying to install PyGObject under a python 3.7.2 virtual environment on Windows.
I ran into the same issue described in #305 (closed), when trying to simply use pip install (with Visual Studio build tools installed). However the solution in #305 (closed) does not work for me, as don't want to package my app. I just want to be able to use a simple virtualenv. So I thought to open a new issue.
Under linux, the Getting Started instructions work regardless if installing in virtualenv or system-wide, as long as the build dependencies are installed on the system.
I would have expected the same for Windows, but these instructions do not provide the necessary information to install the build requirements for windows. They confine you to MSYS2 environment.
So, I did install PyGObject under MSYS2 with python 3.7.2.
Then, I tried (naïvely, perhaps) to copy:
mingw32\lib\python3.7\site-packages\gi
and mingw32\lib\python3.7\site-packages\PyGObject-3.30.4-py3.7.egg-info
to the sites-packages
folder of my virtualenv.
pip list
now shows that PyGObject is installed in my virtualenv. pycairo was also previously installed.
But, upon import gi
, I get: ImportError: cannot import name '_gi' from 'gi'
Do you know if what I am trying to do is possible?