If you get the next error message while trying to create the virtualenv in Ubuntu:
Running virtualenv with interpreter /usr/bin/python3
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 24, in
import distutils.spawn
ModuleNotFoundError: No module named 'distutils.spawn'
Just run: sudo apt-get install python3-distutils
This happens because Ubuntu's built-in Python is broken.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you get the next error message while trying to create the virtualenv in Ubuntu:
Running virtualenv with interpreter /usr/bin/python3
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 24, in
import distutils.spawn
ModuleNotFoundError: No module named 'distutils.spawn'
Just run: sudo apt-get install python3-distutils
This happens because Ubuntu's built-in Python is broken.