直接用python命令,打印sys的path即可:

>>> import sys
>>> print(sys.path)
[\'\', \'/usr/local/lib/python37.zip\', \'/usr/local/lib/python3.7\', \'/usr/local/lib/python3.7/lib-dynload\', \'/usr/local/lib/python3.7/site-packages\']
>>> exit()

 

版权声明:本文为dannyyao原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/dannyyao/p/10196035.html