Error Loading Psycopg Module No Module Named Datetime
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or error loading psycopg2 module: no module named psycopg2 posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss django.core.exceptions.improperlyconfigured: error loading psycopg2 module: no module named psycopg2 Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only no module named datetime python takes a minute: Sign up ImportError: No module named datetime up vote 22 down vote favorite 1 When I upgrade my Ubuntu into 14.04 from 12.04, this time I get this error: ImportError: No module named datetime python ubuntu-12.04 ubuntu-14.04
Install Python Datetime
share|improve this question edited Oct 4 '14 at 13:50 Tshepang 4,6841059103 asked Sep 25 '14 at 5:25 akbsmile 2391312 1 you get this error while doing what ? –g4ur4v Sep 25 '14 at 5:26 which version of python are you using ? –d-coder Sep 25 '14 at 5:28 Yes, while I'm upgrading it and also after it finish upgrading, the error is still there. –akbsmile Sep 25 '14 at 5:31 the version I'm using no module named datetime django is python 2.7.6 –akbsmile Sep 25 '14 at 5:32 add a comment| 9 Answers 9 active oldest votes up vote 41 down vote accepted This happened to me when I created a virtualenv and then upgraded from 12.04 to 14.04. I had to delete my virtualenv and recreate it, and after doing that, everything worked again. share|improve this answer answered Oct 22 '14 at 2:38 erjiang 25.7k44478 3 I had the same problem after I did apt-get dist-upgrade my Debian. Solution was to delete the virtualenv and recreate it. –Sebastian Jylanki Oct 22 '14 at 15:57 2 Thanks for the hint! Simply running mkvirtualenv $my_venv_name solved it for me. –Chriki Jan 20 '15 at 17:31 1 same happened for me after upgrading from 14.04 to 16.04 –philx_x May 26 at 16:16 add a comment| up vote 22 down vote Just run this command. It worked like a charm! $ cp /usr/bin/python2.7 $(which python2.7) This just happened to me after the 14.10 update, and it seems to be because my virtual environments have old copies of /usr/bin/python2.7 that — unlike the new binary — do not include datetime built-in, and so get an error when they cannot find it on disk anywhere. The new interpreter seems to import it without any file I/O (try running it under strace to check). More info here share|improve this answer edited May 3 '15 at 15:13 ali_m 28.2k660113 answered Apr 1 '1
here for a quick overview of the site Help Center Detailed answers to any questions you might pip install datetime have Meta Discuss the workings and policies of this site About
Pycharm No Module Named Datetime
Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Importerror No Module Named Datetime Windows
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million http://stackoverflow.com/questions/26031160/importerror-no-module-named-datetime programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Django runserver error (psycopg2) up vote 1 down vote favorite I'm trying to do this: python3.3 manage.py runserver In my Django project folder. I get this error message: File "/usr/local/lib/python3.3/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 25, in
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more http://stackoverflow.com/questions/36103034/importerror-no-module-named-psycopg2-psycopg about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ImportError: No module named 'psycopg2._psycopg' up vote 3 down vote favorite no module 2 When I try to import psycopg2 it show below log for me: Traceback (most recent call last): File "D:/Desktop/learn/python/webcatch/appserver/testpgsql.py", line 2, in