intelkda.blogg.se

Install python 2.7 linux
Install python 2.7 linux







Note: The latest version of tar is capable of extracting. #yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-develĬomplete! Compile and Install Python 2.7 on CentOS 6.4ĭownload Python 2.7: # wget # tar xf Python-2.7.6.tar.xz These libraries are not must to install Python, but you may need those at a later stage. Install Development Tools: #yum groupinstall "Development tools" Get the system ready to setup Python by installing “Development Tools” and necessary libraries. Prerequisites: You need root access or sudo privilege. Note: Always install new version of Python in a non-standard location (such as /usr/local/) It means, if you ever want to install multiple versions of Python on a single machine, then do it in a right way! So, the lesson learnt is – Never mess up with Python!! (Once the Python is broken, it’s very hard to fix). ImportError: No module named pkg_resources Type "help", "copyright", "credits" or "license" for more information.įrom pkg_resources import load_entry_point Python failed to import yum after installing/upgrading Python: # python

install python 2.7 linux

Verify that the module is installed correctly. Please install a package which provides this module, or

install python 2.7 linux

There was a problem importing one of the Python modules Well, the main reason behind this tutorial is – I recently installed Python 3 and broke everything – python, pip, yum etc…Here’s the snapshot of those: yum broke after installing/upgrading Python: # yum And we are going to do this without breaking the existing Python installation (the default system installed version is 2.6.6 on CentOS 6.4) and other system tools such as yum. Today, I’m going to tell you how to install Python 2.7 and 3.5 versions on CentOS 6.4.









Install python 2.7 linux