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

前端 未结 5 1039
礼貌的吻别
礼貌的吻别 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:45

    Another way to do this is to create a .pth file in your virtualenv's site-packages dir

    eg

    (in /lib/python2.7/site-packages/dist-packages.pth)

    /usr/lib/python2.7/dist-packages/
    

    This fixed the issue I was having with apt-get installed version of pycairo

提交回复
热议问题