0

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

2 Answers 2

1

enter image description here

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

Sign up to request clarification or add additional context in comments.

1 Comment

it's work. I have been reinstall my Anaconda. and set Python.exe as default program for my .py file
1

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.

5 Comments

Do you get the same error and can you post your requirements.txt?
now the error is changed to "import MySQLdb as Database ModuleNotFoundError: No module named 'MySQLdb' "
and you can see on my picture pip list i have installed mysqlclient
For the Mysqldb error did you install the mysql connector?
take a look at this post stackoverflow.com/questions/21440230/… the choosen answer sounds like it would help you here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.