1、设置PYTHON PATH环境变量

例如:

[root@shell_sit_01 ~]# cat > .bash_profile <<-EOF
PYTHONPATH=/usr/local/lib/python3.6/site-packages/setuptools-18.1-py3.6.egg
export PYTHONPATH
EOF
[root@shell_sit_01 ~]# source .bash_profile