Category Archives: Python

Python summary

install python 3.5 on ubuntu 14.x

go to /home/ubuntu/vagrant and

and reload

install pip:


ubuntu 16.04

Python error “Traceback (most recent call last):
File “”, line 7, in
cnopts = pysftp.CnOpts()
File “/usr/local/lib/python3.5/dist-packages/pysftp/”, line 64, in __init__
raise HostKeysException(‘No Host Keys Found’)
pysftp.exceptions.HostKeysException: No Host Keys Found” when use pysftp

from your server must run ssh to connect to verify before then run code again, it will be fine.


How to install Django on Windows

How to install Django on Windows

This article will mention “How to install Django on Windows”. With python, Django  is a popular framework for web, it’s recommended by Python’s creator so you can try it if you want.


Firstly, you need python lastest version, you can download from python download page.

Next, you’re going to install python. it’s ready to have pip tool. After installation finished you can go command line and type:

if it show version, it’s fine to go further.

Next step, go to cmd and go to any folder you want to place your code and start to install Django with these following lines:

You also can choose other version of django by checking djangoproject site.

Finally, go to browser with url

You can watch video youtube to do easily

Now, you can try and do something with Django.

Code example