Application can't find python library installed as rpm

后端 未结 2 1897
轻奢々
轻奢々 2021-01-29 01:45

I have a python application that\'s run inside a virtualenv on CentOS. This application needs a python library that\'s distributed and installed as an rpm. When the application

2条回答
  •  日久生厌
    2021-01-29 02:04

    By default virtual environments don't access modules in site-packages. You either need to allow such access (toggleglobalsitepackages in virtualenvwrapper) or recreate you virtualenv allowing such access with option --system-site-packages.

提交回复
热议问题