Python package installed globally, but not in a virtualenv (PyGTK)

前端 未结 5 1034
礼貌的吻别
礼貌的吻别 2021-01-01 05:23

I\'m having some strange issues with PyGTK in \"virtualenv\". gtk does not import in my virtualenv, while it does import in my global python install. (I wasn\'t having this

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-01 05:44

    It is now possible to resolve this using vext. Vext allows you to install packages in a virtualenv that individually access your system packages. To access PyGTK, do the following:

    pip install vext
    pip install vext.pygtk
    

提交回复
热议问题