When a module named spam is imported, the interpreter first searches
for a built-in module with that name. If not found, it then searches
for a file named spam.py in a list of directories given by the
variable sys.path. sys.path is initialized from these locations:
the directory containing the input script (or the current directory).
PYTHONPATH (a list of directory names, with the same syntax as the
shell variable PATH).
the installation-dependent default.
After initialization, Python programs can modify sys.path.
从https://docs.python.org/2/tutorial/modules.html
所以让我们修改一下系统路径你知道吗
值得印刷系统路径所以你可以明白为什么还没有找到。你知道吗
试试这个
相关问题 更多 >
编程相关推荐