在cmd查看python安装路径的方法:
1、在cmd使用where python命令即可查看python安装路径
2、在cmd进入python编程模式,然后使用下面的命令即可查看python安装路径。>>>importsys
>>>sys.path
['','C:Python27Libidlelib','C:Python27libsite-packagesobotframework_selenium2library-1.5.0-py2.7.egg','C:Python27libsite-packagesdocutils-0.14-py2.7.egg','C:Python27libsite-packagesdecorator-4.2.1-py2.7.egg','C:Windowssystem32python27.zip','C:Python27DLLs','C:Python27lib','C:Python27libplat-win','C:Python27liblib-tk','C:Python27','C:Python27libsite-packages','C:Python27libsite-packageswin32','C:Python27libsite-packageswin32lib','C:Python27libsite-packagesPythonwin','C:Python27libsite-packageswx-2.8-msw-unicode']
更多Python知识请关注云海天Python教程栏目。