查看Python第三方模块版本和安装位置
[root@node1 website]# python Python 3.5.3 (default, Mar 29 2022, 09:23:36) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> print (numpy.__version__) #打印版本 1.18.5 >>> print (numpy.__file__) #打印安装路径 /usr/local/python3/lib/python3.5/site-packages/numpy/__init__.py >>> import requests >>> print (requests.__version__) 2.25.1 >>>



