pythonpippython-venv

Why is python saying I have "no module named venv"?


I installed virtual env with sudo pip install virtualenv but when I run python -m venv flask I'm still getting this: /usr/bin/python: No module named venv

Versions, if that's relevant:

pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)
Python 2.7.9

what am I missing here?


Solution

  • venv is a module introduced in python3

    venv is New in version 3.3.