Hello Kasper, thanks for following up.
I installed Datetime module using pip. The module is there but still the
same error. Looks like a setup error. Here is the pip output:
asgiref==3.2.3
DateTime==4.3
Django==3.0.1
pytz==2019.3
pywin32==227
sqlparse==0.3.0
virtualenv==16.7.8
zope.interface==4.7.
Can you please check whether the python interpreter inside the virtual
environment is python 2 or python 3 ?
In order to do so, you need to goto to the virtualenv folder, activate
cargo env, and then check "python -V"
On Mon, Jan 6, 2020 at 7:10 PM Kasper Laudrup wrote:
> Hi Bhushan,
>
> On 06/0
Hi Bhushan,
On 06/01/2020 18.20, Bhushan Gupta wrote:
Recreated virtual environment – no change.
Inside your virtual environment, what's the output of:
# pip freeze
?
Kind regards,
Kasper Laudrup
--
You received this message because you are subscribed to the Google Groups "Django
users"
: django-users@googlegroups.com
Subject: Re: ModuleNotFoundError: No module named 'datetime'
How about deleting your virtualenv and recreating a new one.
It may be located here ::: C:\Users\\.virtualenvs\cargo
When reactivated, could you please provide as with the results of "ec
C:\Users\GUPTAC~1\Envs\cargo\Scripts\django-admin.py", line 2, in
>>
>> from django.core import management
>> File
>> "c:\users\guptac~1\envs\cargo\lib\site-packages\django\__init__.py", line
>> 1, in
>> from django.utils.version i
> File
> "c:\users\guptac~1\envs\cargo\lib\site-packages\django\__init__.py", line
> 1, in
> from django.utils.version import get_version
> File
> "c:\users\guptac~1\envs\cargo\lib\site-packages\django\utils\version.py",
> line 1, in
> import datetime
>
> from django.utils.version import get_version
> File
> "c:\users\guptac~1\envs\cargo\lib\site-packages\django\utils\version.py",
> line 1, in
> import datetime
> ModuleNotFoundError: No module named 'datetime'
>
> I commented out "impo
from django.utils.version import get_version
> File
> "c:\users\guptac~1\envs\cargo\lib\site-packages\django\utils\version.py",
> line 1, in
> import datetime
> ModuleNotFoundError: No module named 'datetime'
>
> I commented out "import datetime&
le "c:\users\guptac~1\envs\cargo\lib\site-packages\django\__init__.py",
line 1, in
from django.utils.version import get_version
File
"c:\users\guptac~1\envs\cargo\lib\site-packages\django\utils\version.py",
line 1, in
import datetime
ModuleNotFoundError: No mo
9 matches
Mail list logo