PYTHONPATH ignored

前端 未结 7 1675
离开以前
离开以前 2021-01-04 10:33

Environment: debian 4.0

Python 2.4

My \'project\' is installed in:

/usr/lib/python2.4/site-packages/project.

Bu

相关标签:
7条回答
  • 2021-01-04 11:15

    According to python documentation, this is expected behavior: https://docs.python.org/2.4/lib/module-sys.html:

    Notice that the script directory is inserted before the entries inserted as a result of PYTHONPATH.

    Under python-2.6 it is different: http://docs.python.org/tutorial/modules.html#the-module-search-path

    0 讨论(0)
提交回复
热议问题