打不开公式编辑器(公式编辑器用不了)
1602
2022-05-29
1、安装python基础环境
# 本地源或光盘挂载方式安装
yum install -y python-devel openssl-devel gcc libffi-devel
2、安装Ansible依赖组件
2.1、安装setuptools-44.1.0
# cd ~
# wget https://files.pythonhosted.org/packages/5a/df/b2e3d9693bb0dcbeac516a73dd7a9eb82b126ae52e4a74605a9b01beddd5/setuptools-40.1.0.zip
# unzip setuptools-40.1.0.zip
#cd setuptools-44.1.0
#python setup.py install
2.2、安装pycrypto
# cd ~
# wget https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz
# tar xzf pycrypto-2.6.1.tar.gz
# cd pycrypto-2.6.1
# python setup.py install
2.3、安装yaml
# cd ~
# wget http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz
# tar xzf yaml-0.1.5.tar.gz
# cd yaml-0.1.5.tar.gz
# ./configure --prefix=/usr/local
# make --jobs=`grep processor /proc/cpuinfo | wc -l`
# make install
2.4、安装PyYAML
# cd ~
# wget https://pyyaml.org/download/pyyaml/PyYAML-3.11.tar.gz
# tar xzf PyYAML-3.11.tar.gz
# cd PyYAML-3.11
# python setup.py install
2.5、安装MarkupSafe
# cd ~
# wget https://files.pythonhosted.org/packages/f1/a7/39b74c3c7b46531842d2a9a55b7d6bf5b44851786d131d0fa76dbb4abf44/MarkupSafe-0.9.3.tar.gz
# tar xzf MarkupSafe-0.9.3.tar.gz
# cd MarkupSafe-0.9.3
# python setup.py install
2.6、安装Jinja2
# cd ~
# wget https://files.pythonhosted.org/packages/b0/73/eab0bca302d6d6a0b5c402f47ad1760dc9cb2dd14bbc1873ad48db258e4d/Jinja2-2.7.3.tar.gz
# tar xzf Jinja2-2.7.3.tar.gz
# cd Jinja2-2.7.3
# python setup.py install
2.7、安装ecdsa
# cd ~
# wget https://files.pythonhosted.org/packages/6c/3f/92fe5dcdcaa7bd117be21e5520c9a54375112b66ec000d209e9e9519fad1/ecdsa-0.11.tar.gz
# tar xzf ecdsa-0.11.tar.gz
# cd ecdsa-0.11
# python setup.py install
2.8、安装paramiko
# cd ~
# wget https://pypi.python.org/packages/source/p/paramiko/paramiko-1.15.1.tar.gz
# tar xzf paramiko-1.15.1.tar.gz
# cd paramiko-1.15.1
# python setup.py install
2.9、安装simplejson
# cd ~
# wget https://pypi.python.org/packages/source/s/simplejson/simplejson-3.6.5.tar.gz
# tar xzf simplejson-3.6.5.tar.gz
# cd simplejson-3.6.5
# python setup.py install
2.10、安装pycparser
# cd ~
# wget https://files.pythonhosted.org/packages/0f/86/e19659527668d70be91d0369aeaa055b4eb396b0f387a4f92293a20035bd/pycparser-2.20.tar.gz
# tar xzf pycparser-2.20.tar.gz
# cd pycparser-2.20
# python setup.py install
2.11、安装cffi
# cd ~
# wget https://files.pythonhosted.org/packages/05/54/3324b0c46340c31b909fcec598696aaec7ddc8c18a63f2db352562d3354c/cffi-1.14.0.tar.gz
# tar xzf cffi-1.14.0.tar.gz
# cd cffi-1.14.0
# python setup.py install
2.12、安装ipaddress
# cd ~
# wget https://files.pythonhosted.org/packages/b9/9a/3e9da40ea28b8210dd6504d3fe9fe7e013b62bf45902b458d1cdc3c34ed9/ipaddress-1.0.23.tar.gz
# tar xzf ipaddress-1.0.23.tar.gz
# cd ipaddress-1.0.23
# python setup.py install
2.13、安装enum34
# cd ~
# wget https://files.pythonhosted.org/packages/11/c4/2da1f4952ba476677a42f25cd32ab8aaf0e1c0d0e00b89822b835c7e654c/enum34-1.1.10.tar.gz
# tar xzf enum34-1.1.10.tar.gz
# cd enum34-1.1.10
# python setup.py install
2.14、安装six
# cd ~
# wget https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.tar.gz
# tar xzf six-1.14.0.tar.gz
# cd six-1.14.0
# python setup.py install
2.15、安装cryptography
# cd ~
# wget https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz
# tar xzf cryptography-2.8.tar.gz
# cd cryptography-2.8
# python setup.py install
2.16、安装ansible
# cd ~
# wget https://github.com/ansible/ansible/archive/v2.9.6.tar.gz
# tar xzf v2.9.6.tar.gz
# cd ansible-2.9.6
# python setup.py install
3、验证
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。