[root@host /]# python3
Python 3.6.5 (default, Apr 8 2020, 11:34:30)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
查询到 版本号为 3.6.5
[root@host /]# which python3
/usr/bin/python3
查询到 python3路径
[root@host /]# cd /usr/bin/
[root@host bin]# ll | grep python3
lrwxrwxrwx 1 root root 34 Apr 2 15:29 python3 -> /usr/local/python3.6/bin/python3.6
lrwxrwxrwx 1 root root 34 Apr 8 11:36 python3.6 -> /usr/local/python3.6/bin/python3.6
发现两个软连接指向同一地址
[root@host bin]# cd /usr/local/python3.6/
[root@host python3.6]# find . -name site-packages
./lib/python3.6/site-packages
进一步查询到 site-packages 的相对路径
参考
https://www.cnblogs.com/z-x-y/p/9475376.html