Last active
January 20, 2021 07:50
-
-
Save openprojdev/6123768 to your computer and use it in GitHub Desktop.
Install python 2.7.x on RHEL5.x from source and create virtualenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #setup build essentials | |
| yum install gcc gdbm-devel readline-devel ncurses-devel zlib-devel bzip2-devel sqlite-devel db4-devel openssl-devel tk-devel bluez-libs-devel | |
| wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz | |
| tar zxvf Python-2.7.5.tgz | |
| cd Python-2.7.5 | |
| ./configure --prefix=/usr/local/python27 --enable-shared | |
| make | |
| altinstall | |
| echo "/usr/local/python27/lib" >> /etc/ld.so.conf.d/usr-python27.conf | |
| su - | |
| ldconfig | |
| exit | |
| ln -s /usr/local/python27/bin/python2.7 /usr/bin/python2.7 | |
| #install setuptools | |
| wget https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.8.tar.gz | |
| wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.8.tar.gz | |
| tar zxvf setuptools-0.9.8.tar.gz | |
| cd setuptools-0.9.8 | |
| python2.7 setup.py install --prefix=/usr/local/python27/ | |
| #setup virtualenv | |
| /usr/local/python27/bin/easy_install virtualenv | |
| #install pip | |
| curl -O https://pypi.python.org/packages/source/p/pip/pip-1.4.tar.gz | |
| tar zxvf pip-1.4.tar.gz | |
| cd pip-1.4 | |
| python2.7 setup.py install --prefix=/usr/local/python27/ | |
| #create and activate virtualenv | |
| /usr/local/python27/bin/virtualenv /usr/local/python27/env | |
| source /usr/local/python27/env/bin/activate |
اوريد الوصول لحسابات فيس بوك
حسابا ت فيس اصدقاي
cd mbf
python2 MBF.py
pip2 install mechanize
python2 MBF.py
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
نعم اوريد الوصول لاي حسابي فيس بوك