有时我们需要查看python的安装位置,好安装第三方库,linux可以先python进入python cmd,然后输入 # python > import sys > sys.path 即可打印所有python路径。