背景
系统:Ubuntu
Python版本: Python3.7
必要组件安装
apt-get install python3.7
apt-get install python3-pip
自动化所需模块安装
组件安装(非代理模式)
python -m pip install tenacity
python -m pip install paramiko
python -m pip uninstall PyNaCl
python -m pip install PyNaCl
python -m pip install psutil
python -m pip install testtools
python -m pip install jsonschema
python -m pip install flask-babel
python -m pip install dictdiffer
python -m pip install selenium
组件安装(代理模式)
python -m pip uninstall PyNaCl
python -m pip install -i http://mirrors.xxxxxx.org/pypi/simple --trusted-host mirrors.xxxxxx.org tenacity paramiko PyNaCl psutil testtools jsonschema flask-babel dictdiffer selenium
Python环境变量配置
影响到import的搜索路径
export PYTHONPATH=“”