dudepaster.blogg.se

Install python 2.7 ubuntu and centos
Install python 2.7 ubuntu and centos







  1. #Install python 2.7 ubuntu and centos how to
  2. #Install python 2.7 ubuntu and centos install

# make & make altinstallĬopying build/scripts-2.7/idle -> /usr/local/binĬopying build/scripts-2.7/smtpd.py -> /usr/local/binĬopying build/scripts-2.7/pydoc -> /usr/local/binĬopying build/scripts-2.7/2to3 -> /usr/local/binĬhanging mode of /usr/local/bin/idle to 755Ĭhanging mode of /usr/local/bin/smtpd.py to 755Ĭhanging mode of /usr/local/bin/pydoc to 755Ĭhanging mode of /usr/local/bin/2to3 to 755 It means, the executable will be installed in /usr/local/bin and libraries in /usr/local/lib. Note: I’ll be installing Python in /usr/local. # cd Python-2.7.6 #./configure -prefix=/usr/local -enable-unicode=ucs4 -enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"Ĭonfig.status: creating Modules/nfigĬonfig.status: creating Modules/ld_so_aix In case, if you couldn’t extract using tar, then here’s a guide to help you out. Note: The latest version of tar is capable of extracting.

#Install python 2.7 ubuntu and centos install

#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.

install python 2.7 ubuntu and centos

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 Verify that the module is installed correctly. Please install a package which provides this module, or 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.

install python 2.7 ubuntu and centos

#Install python 2.7 ubuntu and centos how to

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 ubuntu and centos