查看python安装路径

命令行 import sys
 sys.path得到:
import syssys.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‘]

相关推荐