查看python安装路径

   
命令行
import sys sys.path

得到:
import sys
sys.path
['C:\\Program Files\\JetBrains\\PyCharm Community Edition 2019.3\\plugins\\python-ce\\helpers\\pydev',
'C:\\Program Files\\JetBrains\\PyCharm Community Edition 2019.3\\plugins\\python-ce\\helpers\\third_party\\thriftpy',
'C:\\Program Files\\JetBrains\\PyCharm Community Edition 2019.3\\plugins\\python-ce\\helpers\\pydev',
'C:\\Users\\78658\\Envs\\Flask_demo1\\lib',
'C:\\Users\\78658\\Envs\\Flask_demo1\\Scripts',
'c:\\anaconda\\Lib',
'c:\\anaconda\\DLLs',
'C:\\Users\\78658\\Envs\\Flask_demo1',
'C:\\Users\\78658\\Envs\\Flask_demo1\\lib\\site-packages',
'D:\\test', 'D:/test']

你可能感兴趣的:(查看python安装路径)