PYTHONPATH ignored

前端 未结 7 1709
离开以前
离开以前 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:06

    I see '/usr/lib/python2.4/site-packages' in your path prior to '/home/me/dev/project/src', does that matter? What happens when you switch the two?

    From the docs:

    When PYTHONPATH is not set, or when the file is not found there, the search continues in an installation-dependent default path

    So perhaps you didn't find your working copy on your PYTHONPATH as you had thought?

提交回复
热议问题