On Friday, 3 January 2020 17:38:27 UTC, 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.
Exactly what did you do when you "set the path"? Why did you think you needed to do that manually in the first place? Don't. That is what a virtualenv is for.
--
DR.
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/9a1a84bc-8fa4-4d38-a22a-ee29cc55621b%40googlegroups.com.
No comments:
Post a Comment