Forums

Error when creating virtual environment

When I run the command to create a virtual environment, I am getting the following error!

$ mkvirtualenv myvirtualenv --python=/usr/bin/python3.10

The path /usr/bin/python3.10 (from --python=/usr/bin/python3.10) does not exist

How can i fix this?

Regards Lino

you can also use- python -m venv <your_virtual_env> to create the virtual environment, I use the same to create one..

Hi Lino -- it looks like you're on an older system image, fishnchips, which only supports Python up to 3.8. You can update your system image to haggis -- the latest one, with 3.10 -- using the instructions on this help page.