Forums

Can't create virtual environment

THIS PROBLEM IS SOLVED NOW

I'm trying to deploy my already created django app. I used virtual environment on my desktop. Now, on pythonanywhere when I try (mkvirtualenv --python=/usr/bin/python3.7 fir-virtualenv) command, It gives me error that states "The path /usr/bin/python3.7 (from --python=/usr/bin/python3.7) does not exist". This is first time I'm using pythonanywhere and I'm confused what mistake I'm making.

it's probably /usr/bin/python3.6, not /urs/

That's because it's /usr/local/bin/python3.7 that you should be using for the --python argument.

I have changed it to 'usr' but I still am getting the same error. P.S I have updated the question.

Did you add the local?

@glenn I don't know what is "local" but my problem is solved. Thanks anyway

I have the same problem with:

virtualenv --python="/usr/local/bin/python3.8" "/home/username/.virtualenvs/django4"

which gives me:

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

It gives no problem for python3.7.

It's because your account is on an old system image where Python 3.8 is not available. Please upgrade to a newer system image, here's the help page on how to do that.