virtualenv in Ubuntu Python 2.7.17

python --version
Python 2.7.17
...
apt install python-pip
...
The following NEW packages will be installed:
  libexpat1-dev libpython-all-dev libpython-dev libpython2.7-dev python-all python-all-dev python-asn1crypto python-cffi-backend python-cryptography python-dbus python-dev
  python-enum34 python-gi python-idna python-ipaddress python-keyring python-keyrings.alt python-pip python-pip-whl python-pkg-resources python-secretstorage
  python-setuptools python-six python-wheel python-xdg python2.7-dev
...
pip install flask
Installing collected packages: itsdangerous, click, Werkzeug, MarkupSafe, Jinja2, flask
Successfully installed Jinja2-2.11.3 MarkupSafe-1.1.1 Werkzeug-1.0.1 click-7.1.2 flask-1.1.4 itsdangerous-1.1.0
..
python -m virtualenv flask
created virtual environment CPython2.7.17.final.0-64 in 520ms
...
root@my-desktop:/home/mydir# python -m virtualenv venv
created virtual environment CPython2.7.17.final.0-64 in 353ms
...

Leave a Reply