python查看已安装模块
[root@ks-allinone ~]# pip list
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Package Version
------------------- ---------
ansible 2.7.12
bcrypt 3.1.7
certifi 2020.6.20
cffi 1.14.0
chardet 3.0.4
configobj 4.7.2
cryptography 3.0
decorator 3.4.0
enum34 1.1.10
hvac 0.8.2
idna 2.10
使用python3缺少的模块问题
模块1: 缺少 paramiko 模块
[root@ice_python ~]# python3 postdata.py
Traceback (most recent call last):
File "postdata.py", line 4, in <module>
import paramiko
ImportError: No module named 'paramiko'
[root@ice_python ~]# pip3 install paramiko