title: Python: paramiko ImportError even after pip install
body: <p>I would like to use a Python script on my Raspberry Pi 2 to upload a .txt file to my SFTP Webspace.</p>
  
  <p>I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "upload.py", line 1, in &lt;module&gt;
      import paramiko
  ImportError: No module named paramiko
  </code></pre>
  
  <p>But I did this: <code>pip install paramiko</code></p>
  
  <p>This is my code:</p>
  
  <pre><code>import paramiko
  import Crypto
  
  
  # Open a transport
  
  host = "HOST"
  port = 22
  transport = paramiko.Transport((host, port))
  
  # Auth
  
  password = "XXXX?"
  username = "XXXX"
  transport.connect(username = username, password = password)
  
  # Go!
  
  sftp = paramiko.SFTPClient.from_transport(transport)
  
  # Download
  
  #filepath = '/var/www/xxx/test.txt'
  #localpath = 'C:\\Users\\xxxx\\Desktop\\test.txt'
  #sftp.get(filepath, localpath)
  
  # Upload 1
  
  filepath = '/home/niklaspi/pythonupload'  #test ist in diesem Fall ein Ordner mit mehreren Dateien
  localpath = '/home/pi/Desktop/Network/logs/logLocal.txt'
  sftp.put(localfile, remfile)
  
  # Close
  
  sftp.close()
  transport.close()
  </code></pre>
  
  <p>Can you help me?</p>
  
  <p>Thanks!</p>