How to install python virtualenv on Linux


Step 1: Install pip

Read: How to install python pip on Linux

Step 2: install virtualenv

pip install virtualenv

Result:

[root@tutorialspots ~]# pip install virtualenv
Collecting virtualenv
/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/uti
l/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (S
ubject Name Indication) extension to TLS is not available on this platform. This
 may cause the server to present an incorrect TLS certificate, which can cause v
alidation failures. For more information, see https://urllib3.readthedocs.org/en
/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/uti
l/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not availabl
e. This prevents urllib3 from configuring SSL appropriately and may cause certai
n SSL connections to fail. For more information, see https://urllib3.readthedocs
.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading virtualenv-15.0.1-py2.py3-none-any.whl (1.8MB)
    100% |################################| 1.8MB 378kB/s
Installing collected packages: virtualenv
Successfully installed virtualenv-15.0.1

install virtualenv 1

Leave a Reply