在cmd中启动Python,然后执行下面的程序即可:
C:UsersAdministrator>python Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print(sys.path) ['', 'C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\python37.zip', 'C:\U sers\Administrator\AppData\Local\Programs\Python\Python37-32\DLLs', 'C:\Users\Administrator \AppData\Local\Programs\Python\Python37-32\lib', 'C:\Users\Administrator\AppData\Local\Pr ograms\Python\Python37-32', 'C:\Users\Administrator\AppData\Local\Programs\Python\Python37- 32\lib\site-packages', 'C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\l ib\site-packages\win32', 'C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32 lib\site-packages\win32\lib', 'C:\Users\Administrator\AppData\Local\Programs\Python\Pytho n37-32\lib\site-packages\Pythonwin'] >>>
在cmd直接使用where python命令查看python安装路径



