Adding folder to Python's path permanently

后端 未结 4 556
北海茫月
北海茫月 2020-12-02 21:57

I\'ve written a library in python and I want it to reside in a common location on the file system.

From my script, I just want to do:

>>> im         


        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 22:24

    Deducing from the path you provided in your example here's a tutorial for setting the PYTHONPATH variable in Windows: http://docs.python.org/using/windows.html#excursus-setting-environment-variables

提交回复
热议问题