比如有python2.x和聘用合同3.x在同一linux系统中 pip install requests 默认安装到python2.x的环境中。 pip3 install requests 这样便能安装到python3.x的环境中。