import sys
module = sys.path
for i in module:
print(i)
二、添加到系统环境变量中
path
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts
import sys
module = sys.path
for i in module:
print(i)
path
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts