Create first project in Django

0

Hi, I need to create my first project in Django but when I execute the command to create the project I get the following error:

C:\casa>django-admin startproject casa
Traceback (most recent call last):
File "C:\Users\Alfonso\AppData\Local\Programs\Python\Python36- 
32\Scripts\djang
o-admin-script.py", line 6, in <module>
from pkg_resources import load_entry_point
File "C:\Users\Alfonso\AppData\Local\Programs\Python\Python36-32\lib\site- 
packages\pkg_resources\__init__.py", line 3088, in <module>
@_call_aside
File "C:\Users\Alfonso\AppData\Local\Programs\Python\Python36-32\lib\site- 
packages\pkg_resources\__init__.py", line 3072, in _call_aside
f(*args, **kwargs)
 File "C:\Users\Alfonso\AppData\Local\Programs\Python\Python36-32\lib\site- 
 packages\pkg_resources\__init__.py", line 3101, in 
_initialize_master_working_set working_set = WorkingSet._build_master()
File "C:\Users\Alfonso\AppData\Local\Programs\Python\Python36-32\lib\site- 
packages\pkg_resources\__init__.py", line 574, in _build_master
ws.require(__requires__)
File "C:\Users\Alfonso\AppData\Local\Programs\Python\Python36-32\lib\site- 
packages\pkg_resources\__init__.py", line 892, in require
needed = self.resolve(parse_requirements(requirements))
File "C:\Users\Alfonso\AppData\Local\Programs\Python\Python36-32\lib\site- 
packages\pkg_resources\__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pytz' distribution was not found 
and is required by Django 

I am a beginner in programming and I have never used framerworks in advance thank you very much

    
asked by Deadpool909105 08.07.2018 в 21:32
source

1 answer

0

According to the message it seems that you need to install pytz:

pip install pytz

Greetings!

    
answered by 09.07.2018 / 00:28
source