Configuring Python to use additional locations for site-packages

后端 未结 2 1603
鱼传尺愫
鱼传尺愫 2020-12-13 02:16

Is there a way to tell Python about additional site-packages locations without modifying existing scripts?

On my CentOS 5.5 server I have a Python 2.7 i

2条回答
  •  盖世英雄少女心
    2020-12-13 02:39

    You could replace the python executable with a wrapper script which appends your added installpath to PYTHONPATH. But this is a kludge.

    But I'd try to fix the installation of the add-on so that it properly goes into the site-packages dir.

提交回复
热议问题