Skip to content

Tag: python-2.7

import cv2 on centos 64 bit

I already copy the cv2 and complete the procedure installing opencv and python and I also think the default python installation is usr/lib64/python2.7 and there is also usr/lib/python2.7 and I also move the cv2 using copy -r usr/lib/python2.7/site-packages/cv2.so to usr/lib64/python2.7/site-packages/ it succe…

Update python on linux 2.7 to 3.5

So I updated python using these instructions: then then and it worked but when I closed terminal, and wrote python -v it is still python 2.7 and still getting errors executing code that use v3+ standard libraries How to make it working as 3.5? Answer You still have Python 2 installed, and the python command i…

SFTP via Paramiko to ipv6 linux machine

I am relatively new to python and am trying sftp for the first time via python script. I want my python script to get a file from a Dual Stack Machine (Both IPv4 and IPv6 present). Below is the code snippet I am using for Paramiko: When I use the code with IPv4 it works fine. But when I replace