Forums

Created a virtual environment in the wrong python version

I know this has been asked before, but past answers do not seem to work for me. So, I initially created a virtual environment in the wrong version, 3.4. Then I tried to remove it, but it would not allow me to, so I deactivated it and reloaded it with the 3.7 version.

However, pythonanywhere does not recognize this. Get this error: 'This virtualenv seems to have the wrong Python version (3.4 instead of 3.7).'

How do I fix this issue. If I try to remove it with (rmvirtualenv), I get this error: ERROR: You cannot remove the active environment ('mysite-virtualenv'). Either switch to another environment, or run 'deactivate'.

If you run the deactivate command (it doesn't take any parameters), then you'll leave the virtualenv, which means that rmvirtualenv mysite-virtualenv will work.

Thanks!

thanks it helped to install the packages I needed, but somehow my app is down still. The python packages are giving me strange errors.

Now it work, since I also upgrade Django to 4.2.9, I had to resolve all the dependencies. But at last I figured that I had to upgrade to MYSQL 8 as well.

I will be putting a request to upgrade it, but after downgrading to Django 4.1 , my app is up and running!

Great!