Pycharm -> Failed to create virtual environment
I wanted to run my first python file on ubuntu when suddenly this message with no further instructions appeared:
As a consequence I have researched what the meaning of the error was. According to the forum this was the most appropriate solution:
I have tried it, however the same error message appeared. I also made sure that the location directory where I created my venv was empty. This is the furthest I have come:
After this the same error message appears with no context how to solve it.
Solution: Unable to locate package python3-distutils in Ubuntu 16.04
First answer from ksharp
61 Answer
I had a similar issue in Linux Mint, the solution which helped me was found on code2care.org, which I also mentioned here:
You need to update virtualenv package! Run the below command in CMD or Mac/Linux terminal,
pip upgrade virtualenvIf you have
pip3, try the below command,pip3 upgrade virtualenvIf you are using conda, try the below command,
conda install virtualenv
First, I installed pip3 and then proceeded to pip3 install virtualenv.