安装python paramiko模块

1、安装PyCrypto模块

wget https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz
tar zxf pycrypto-2.6.1.tar.gz
cd pycrypto-2.6.1/
sudo python setup.py install

2、安装paramiko模块

sudo apt-get install libffi-dev
git clone https://github.com/paramiko/paramiko.git
cd paramiko/
sudo python setup.py install

做成shell脚本运行

新建paramiko-install.sh,增加以下内容

sudo apt-get install libffi-dev
wget https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz
tar zxf pycrypto-2.6.1.tar.gz
cd pycrypto-2.6.1/
sudo python setup.py install
cd ..
git clone https://github.com/paramiko/paramiko.git
cd paramiko/
sudo python setup.py install

 

你可能感兴趣的:(树莓派)