I went to windows environment variables and added the last two lines. I was following instructions from:
On Friday, January 3, 2020 at 9:38:27 AM UTC-8, bhushan Gupta wrote:
-- C:\Program Files (x86)\Python38-32\Lib\site-packages
C:\Program Files (x86)\Python38-32\Lib\site-packages\django\bin\
On Friday, January 3, 2020 at 9:38:27 AM UTC-8, bhushan Gupta wrote:
I want to use Django to build a simple portal. I have done the following on Windows 10installed Python 3.8 and pipInstalled virtualenvCreated an env 'cargo'Installed Djengo 3.0.1Set the path:C:\Program Files (x86)\Python38-32\C:\Program Files (x86)\Python38-32\Python.exeC:\Program Files (x86)\Python38-32\Scripts\C:\Program Files (x86)\Python38-32\Lib\site-packages C:\Program Files (x86)\Python38-32\Lib\site-packages\django\bin\ I have activated the environment - (cargo) C:\Users\Gupta Consulting\Envs\cargo>When I start a project using - python django-admin.py startproject cargo I get the following error:(cargo) C:\Users\Gupta Consulting\Envs\cargo>django-admin.py startproject myproject Traceback (most recent call last):File "C:\Users\GUPTAC~1\Envs\cargo\Scripts\django-admin.py", line 2, in <module> from django.core import managementFile "c:\users\guptac~1\envs\cargo\lib\site-packages\django\__ init__.py", line 1, in <module> from django.utils.version import get_versionFile "c:\users\guptac~1\envs\cargo\lib\site-packages\django\ utils\version.py", line 1, in <module> import datetimeModuleNotFoundError: No module named 'datetime'I commented out "import datetime" from the vsersion.py file. Then it did not find the next module in in the version.py file.Looks like there is a setup problem.Any help will be appreciatedThanks.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4f660e7e-cf85-4651-83a6-fbf659ced736%40googlegroups.com.
No comments:
Post a Comment