问题描述
我正在从源代码构建一个deb软件包。用来在RHEL的站点软件包中安装模块的源。
I am building a deb package from source. The source used to install the modules in 'site-packages' in RHEL.
在Ubuntu上,站点软件包对我不起作用。在网上搜索时,它说python Ubuntu将在 dist-packages中要求它。
On Ubuntu, 'site-packages' doesn't work for me. Searching over the net, it says that python Ubuntu would require it in 'dist-packages'
但是也有一些参考资料指出,从源代码构建的python会在 site-软件包'
But there are also references that python built from source would look in 'site-packages'
现在我很困惑,我的deb软件包应该在哪里安装模块,以便无论从源构建的Python还是从Ubuntu回购安装的python都可以使用
Now I am confused, where should my deb packages install the modules so that it works irrespective of python built from source or installed from Ubuntu repo
推荐答案
从IRC中学到的是,假设管理员将已经安装了python,我应该仅将模块安装在 dist-packages中仅由Ubuntu存储库提供。
From what I learnt from IRC is that I should install the modules in 'dist-packages' only, assuming that the admin would have installed the python provided by Ubuntu repo only.
这篇关于'dist-packages'与'site-packages'中的Python模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!