[Tutor] I think I've broken my Python

Matthew Ngaha chigga101 at gmail.com
Mon Nov 12 06:45:53 EST 2018


I haven't coded in about 3 years and I used to use Python3.4 on
openSUSE13.1. I had a virtual environment with this Python for a
development Django website. Before I stopped coding, I upgraded to
Python3.5, but everything still worked if I remember correctly. But
now I'm back to coding I tried to load up my Django website but I get
the error:
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ImportError: No module named django.core.management

What happens is Django's manage.py can't be found so the line:
"from django.core.management import execute_from_command_line"
throws the error. In the virtual environment when I type python in the
command line, it opens Python2.7 and when I type Python3, it opens
Python3.5. So it seems my Python3.4 is lost. I thought the virtual
environment only loaded up the Python version it was installed for, in
my case Python3.4 when I type python or python3 in the command line,
had I known this wasn't the case I would have never upgraded Python.
Is there anything I can do?


More information about the Tutor mailing list