Error modulenotfounderror when starting Django: no module named ‘pytz’

It was a bad start. I made a mistake when I first learned Django. No module named ‘pytz’ is reported when running the manage.py file through the PY – 3 manage.py runserver 127.0.0.1:8000 command

Solution: install pytz module: PIP3 install pytz

After successful installation, enter py – 3 manage.py runserver 127.0.0.1:8000 to run successfully:

  If you want to directly run the manage.py file in pycharm, you need to add parameters

First open the edit configuration, as shown in the figure:

Add parameters as shown in the figure:

Similar Posts: