且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在其模块搜索路径中不包含〜/.local/lib/pythonX.Y/site-packages的情况下运行python

更新时间:2023-10-23 11:43:40

好,python可执行文件中有一个-s标志,用于禁止搜索用户站点目录(`〜/.local/lib/python2.7/site -包装等).那解决了上面的问题!

Well, there is a -s flag in python executable to disable searching the user site directory (`~/.local/lib/python2.7/site-packages etc). That solves the problem above!