How to install virtualenv on Centos6?
<p>I want to apply my Flask project on my workplace Centos6. So I followed guide from google to install pip, virtualenv, and flask, but I cannot successfully install either pip or virtualenv.</p>

<p>What I have done is this:</p>

<p>1) <a href="http://sharadchhetri.com/2014/05/30/install-pip-centos-rhel-ubuntu-debian/" rel="nofollow">http://sharadchhetri.com/2014/05/30/install-pip-centos-rhel-ubuntu-debian/</a></p>

<pre><code>#rpm -ivh httplink://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

#yum install -y python-pip
(version 7.1.0-1.el6)

#pip install virtualenv 
</code></pre>

<p>this gives</p>

<blockquote>
  <p>urllib3 will issue (InsecurePlatformWarning)</p>
</blockquote>

<p>2) <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4" rel="nofollow">https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4</a></p>

<pre><code>#curl httplink://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | python2.7 - 
</code></pre>

<p>this gives</p>

<blockquote>
  <p>curl: (77) Problem with the SSL CA cert (path? access rights?)</p>
</blockquote>

<p>3) <a href="http://www.ylabs.co.kr/index.php?document_srl=31854&amp;mid=board_dev_python&amp;order_type=asc&amp;sort_index=title" rel="nofollow">http://www.ylabs.co.kr/index.php?document_srl=31854&amp;mid=board_dev_python&amp;order_type=asc&amp;sort_index=title</a></p>

<p>with python2.7</p>

<pre><code>#cd /tmp

#wget --no-check-certificate httplink://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz

#tar -xvf setuptools-1.4.2.tar.gz

#cd setuptools-1.4.2

#python2.7 setup.py install
</code></pre>

<p>This gives</p>

<pre><code>Searching for pip
Reading httplink://pypi.python.org/simple/pip/
Download error on httplink://pypi.python.org/simple/pip/: [Errno 0] _ssl.c:343: error:00000000:lib(0):func(0):reason(0) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading httplink://pypi.python.org/simple/
Download error on httplink://pypi.python.org/simple/: [Errno 0] _ssl.c:343: error:00000000:lib(0):func(0):reason(0) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
</code></pre>

<p>4) <a href="http://novafactory.net/archives/3074" rel="nofollow">http://novafactory.net/archives/3074</a></p>

<pre><code># wget httplink://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py

# python3.4 ez_setup.py

# easy_install-3.4 pip

# pip3.4 install virtualenv
</code></pre>

<p>This gives</p>

<pre><code>Downloading/unpacking virtualenv
  Cannot fetch index base URL httplink://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement virtualenv
Cleaning up...
No distributions at all found for virtualenv
Storing debug log for failure in /root/.pip/pip.log
</code></pre>

<p>My system is CentOS release 6.8 (Final), python 2.6/2.7/3.4</p>

<pre><code>pip3 -V : 
pip 1.5.6 from /usr/local/lib/python3.4/site-packages (python 3.4)

pip2 -V :
pip 7.1.0 from /usr/lib/python2.6/site-packages (python 2.6)
</code></pre>

<p>Thankyou for the advices</p>

<p>what I have done is to not use pip, instead I just download python module packages.</p>

<p>I went to the link <a href="http://pypi.python.org/simple/" rel="nofollow">http://pypi.python.org/simple/</a>
which I got from error message from above (my 3 trial)</p>

<p>and download [package] what I looked for</p>

<p>and tar -xvf [package]</p>

<p>cd [package]</p>

<p>[python setup install]</p>

<p>So I could install Flask and virtualenv without using pip</p>

python flask pip virtualenv centos6