pip install obfsproxy
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
You are using pip version 7.1.0, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting obfsproxy
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading obfsproxy-0.2.13.tar.gz (93kB)
100% |████████████████████████████████| 94kB 39kB/s
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.6/site-packages (from obfsproxy)
Collecting PyCrypto (from obfsproxy)
Downloading pycrypto-2.6.1.tar.gz (446kB)
100% |████████████████████████████████| 446kB 259kB/s
Collecting Twisted (from obfsproxy)
Downloading Twisted-16.1.1.tar.bz2 (2.9MB)
100% |████████████████████████████████| 2.9MB 95kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-7aeuJC/Twisted/setup.py", line 57, in <module>
main(sys.argv[1:])
File "/tmp/pip-build-7aeuJC/Twisted/setup.py", line 36, in main
from twisted.python.dist import (
File "./twisted/__init__.py", line 55, in <module>
_checkRequirements()
File "./twisted/__init__.py", line 17, in _checkRequirements
raise ImportError("Twisted requires Python 2.7 or later.")
ImportError: Twisted requires Python 2.7 or later.
#try again after installing these packages
yum -y install python-crypto gcc make
pip install obfsproxy
#same result as before
ImportError: Twisted requires Python 2.7 or later.
#there is no python 2.7 package for Centos 6
#build it ourselves
centos, obfsproxy, install, errorspip, usr, lib, python, packages, pip, _vendor, requests, urllib, util, ssl_, py, insecureplatformwarning, sslcontext, prevents, configuring, ssl, appropriately, connections, https, readthedocs, org, en, html, upgrading, via, upgrade, collecting, downloading, tar, gz, kb, requirement, setuptools, pycrypto, bz, mb, output, egg_info, traceback, quot, module, tmp, aeujc, sys, argv, dist, import, __init__, _checkrequirements, importerror, requires, installing, yum, crypto, gcc,