![]() ![]() In the terminal enter the following commands: sudo yum update sudo yum upgrade In the next step, you will use the curl command to download the binaries for Docker Compose. ![]() If you need to install any new packages, you can do that with pip2.7 install package_name and pip3.6 install package_name. Step 1: Update Repositories and Packages Before starting any installation, make sure to update the software repositories and software packages. You can now use the commands python2.7 and python3.6 to run your scripts. cd tmp]# wget tmp]# python2.7 get-pip.py -prefix=/usr/local/ Python-3.6 has Pip built-in, which can be accessed using the command pip3.4.ĭownload the setuptools and Pip installation script for Python-2.7. ![]() Install Pip, Setuptools, and Virtualenv for Python 2.7 Python-3.6.2]# make & make altinstallĪdd Python to search PATH. configure -prefix=/usr/local -enable-unicode=ucs4 -enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"Ĭreate and install Python binaries. opt]# cd /opt/ & wget & tar xvf Python-3.6.2.tgzĬompile Python source code. Python-2.7.13]# export PATH="/usr/local/bin:$PATH"ĭownload the latest source code and extract it. Python-2.7.13]# make & make altinstallĪdd Python to search PATH. opt]# cd /opt/ & wget & tar xvf Python-2.7.13.tgzĬompile Python source code. ![]() ~]# yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-develĭownload the latest source code and extract it. ~]# yum groupinstall -y 'development tools' Update the operating system to the latest kernel. Virtualenv is a tool to create isolated Python environments which can keep the dependencies required by different projects in separate folders. This tutorial will help you install Python 2.7 and Python 3.6, as well as setup Virtualenv on CentOS 6. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |