小风儿 发表于 2018-8-4 08:47:01

python ImportError: No module named paramiko

  >>> import paramiko
  Traceback (most recent call last):
  File &quot;<stdin>&quot;, line 1, in <module>
  python ImportError: No module named paramiko
  模块没有安装
  接下来安装
  root@scpman:~# apt-cache search python* |grep paramiko
  python-paramiko - Make ssh v2 connections with Python
  apt-get install python-paramiko
  root@scpman:~# python
  Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
   on linux2
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  >>> import paramiko

  /usr/lib/python2.6/dist-packages/Crypto/Util/randpool.py:40: RandomPool_DeprecationWarning: This application uses RandomPool, which is BROKEN in older>  RandomPool_DeprecationWarning)
  >>> import paramiko
  >>>
  >>> print &quot;www.scpman.com&quot;
  www.scpman.com
  >>>
  现在好用了
页: [1]
查看完整版本: python ImportError: No module named paramiko