12.10 13.04 ve ubuntu dan yükseltme yaptım Justhiçbir modül adı datetime ubuntu sonra 13.04 yükseltme
virtualenv /home/sysadmin/webapps/devsite/virtualenv/
bunda Python yeniden yükler yapmak Virtualenv
(virtualenv)[email protected]:~/webapps/devsite/djangosite$ ./manage.py runserver
Traceback (most recent call last):
File "./manage.py", line 2, in <module>
from django.core.management import execute_manager
File "/home/sysadmin/webapps/devsite/virtualenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 7, in <module>
from django.core.management.base import BaseCommand, CommandError, handle_default_options
File "/home/sysadmin/webapps/devsite/virtualenv/local/lib/python2.7/site-packages/django/core/management/base.py", line 14, in <module>
from django.utils.encoding import smart_str
File "/home/sysadmin/webapps/devsite/virtualenv/local/lib/python2.7/site-packages/django/utils/encoding.py", line 4, in <module>
import datetime
ImportError: No module named datetime
13.04 şimdi Python 3 ile birlikte gelmiyor mu? Bunun eski virtualenv üzerinde herhangi bir etkisi olup olmadığından emin değil. – CppLearner
Varsayılan python'um 2.7.4 Python 2.7.4 (varsayılan, Apr 19 2013, 18:28:01) linux2 üzerinde [GCC 4.7.3] –
Sanalenyanızı konsolda etkinleştirdikten sonra datetime alabilir misiniz? – alecxe