Python3 showing error while trying to create a new virtual environment from terminal using
virtualenv name_goes_here with error,
Traceback (most recent call last): File "/home/w3e/.local/bin/virtualenv", line 7, in from virtualenv import main ImportError: cannot import name 'main' from 'virtualenv' (/usr/lib/python3/dist-packages/virtualenv/init.py)
But it works when I do it from PyCharm > Settings > Project Interpreter > Add Python Interpreter See the attached image below-

venvmodule?venvvenvto create the environment becausevirtualenvis a 3rd party tool.python3 -m venv name_goes_here.