centos下查看python的安装目录

直接用python命令,打印sys的path即可:

>>> import sys
>>> print(sys.path)
['', '/usr/local/lib/python37.zip', '/usr/local/lib/python3.7', '/usr/local/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages']
>>> exit()
上一篇:Xtrabackup简介


下一篇:其他综合-CentOS 7 rsync+nginx实现公网yum源