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

JuNas
  • 432
  • 2
  • 7
  • 16

2 Answers2

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.

Taylor
  • 1,223
  • 1
  • 15
  • 30
  • Do you get the same error and can you post your requirements.txt? – Taylor Oct 23 '18 at 16:51
  • now the error is changed to "import MySQLdb as Database ModuleNotFoundError: No module named 'MySQLdb' " – JuNas Oct 24 '18 at 04:32
  • and you can see on my picture [pip list](https://i.stack.imgur.com/dzxzU.png) i have installed mysqlclient – JuNas Oct 24 '18 at 04:34
  • For the Mysqldb error did you install the mysql connector? – Taylor Oct 24 '18 at 23:21
  • take a look at this post https://stackoverflow.com/questions/21440230/install-mysql-python-windows the choosen answer sounds like it would help you here – Taylor Oct 25 '18 at 18:40
1

enter image description here

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

mohammed wazeem
  • 1,310
  • 1
  • 10
  • 26
  • it's work. I have been reinstall my Anaconda. and set Python.exe as default program for my .py file – JuNas Oct 27 '18 at 11:43