JuNas
JuNas

Reputation: 482

import django ModuleNotFoundError: No module named 'django' after install python 2

I have 3 django projects (version 1.11.15), and all errors after I accidentally install Python 2 (I installed the react native), before I used python 3.6.5 via Anaconda.

Some of my project files appear error symbols. And when I try to run "manage.py runserver", it can't run, and an error appears. I uninstalled Python 2, and reinstalled my Anaconda (Python 3.6.5), but it didn't work.

In my opinion there is a problem in the path, but I don't know what that is. I've been looking for a solution, but nothing works. Anyone has a solution? ... thanks

error

enter image description here

my python version

python version

this is my python path, I don't know what to add here, I just followed a few tutorials that I found enter image description here enter image description here

this is my path my path

This is my requirement.txt

requiremen.txt

Upvotes: 0

Views: 846

Answers (2)

mohammed wazeem
mohammed wazeem

Reputation: 1328

enter image description here

i found it, it's " python manage.py runserver " not " manage.py runserver "

Upvotes: 1

Taylor
Taylor

Reputation: 1253

I have ran into this problem and I found the easiest solution was to write out requirements.txt and remove any unwanted libraries. Then delete the virtualenv and recreate a new with the new requirements.

Upvotes: 1

Related Questions