Single

Win10查看Python安装路径和包路径

1.查看Python的安装路径

python -c "import sys; print sys.executable"

执行结果:

C:\Program Files\Anaconda2\python.exe

2.查看安装的各个包的路径

python -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())"

执行结果:

C:\Program Files\Anaconda2\Lib\site-packages

暂无评论

发表评论