When I try to import paramiko, when I try to run rforward.py from the paramiko demo files, it shows error :
import paramiko
./rforward.py
Tr
Issue was with pip. The pip and pip3 I had installed in the same path, /usr/lib/python3/dist-packages. I installed a pip specifically for python 2.7. Using this. Now pip installs for python and pip3 for python3.
pip
pip3
/usr/lib/python3/dist-packages