import sys
print(sys.path)
[‘D:\pythonday1week’, ‘D:\pythonday1week’, ‘C:\Users\admin\AppData\Local\Programs\Python\Python37\python37.zip’, ‘C:\Users\admin\AppData\Local\Programs\Python\Python37\DLLs’, ‘C:\Users\admin\AppData\Local\Programs\Python\Python37\lib’, ‘C:\Users\admin\AppData\Local\Programs\Python\Python37’, ‘D:\pythonday1week\venv’, ‘D:\pythonday1week\venv\lib\site-packages’, ‘D:\pythonday1week\venv\lib\site-packages\setuptools-40.8.0-py3.7.egg’, ‘D:\pythonday1week\venv\lib\site-packages\pip-19.0.3-py3.7.egg’]
Process finished with exit code 0
或
通过export PYTHONPATH='D:\pythonday2week 自定义路径