2

I wanted to run my first python file on ubuntu when suddenly this message with no further instructions appeared:

Failed to create virtual env

As a consequence I have researched what the meaning of the error was. According to the forum this was the most appropriate solution:

discussion

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:

Current selection

After this the same error message appears with no context how to solve it.

Edit:Error message

Solution: Unable to locate package python3-distutils in Ubuntu 16.04

First answer from ksharp

1 Answers1

1

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 virtualenv

If you have pip3, try the below command,

pip3 upgrade virtualenv

If you are using conda, try the below command,

conda install virtualenv

First, I installed pip3 and then proceeded to pip3 install virtualenv.

Error404
  • 8,278
  • 3
  • 35
  • 60
chodeng
  • 11