Gridea

Python 中模块的搜索路径和包导入

2022-05-09 · 1 min read
Coding Python

Module Searching Path

The module searching path of Python is consists of 5 parts:

  • The home directory of the script
  • Python PATH envoriment
  • The Python standard library
  • Content in the .pth
  • site-packages directory

Configuration of the module searching path

Among the listed module searching path