Error Loading Psycopg Module No Module Named Psycopg
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 error loading psycopg2 module: no module named psycopg2 about Stack Overflow the company Business Learn more about hiring developers or posting ads
Django.core.exceptions.improperlyconfigured: Error Loading Psycopg2 Module: No Module Named Psycopg2
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow
Importerror: No Module Named Psycopg2
is a community of 4.7 million 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
Importerror No Module Named Psycopg2 Windows
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 importerror no module named psycopg2 ubuntu more about Stack Overflow the company Business Learn more about hiring developers or posting importerror no module named psycopg2 centos ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community no module named psycopg2 windows 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' up vote 0 down vote http://stackoverflow.com/questions/21516847/django-runserver-error-psycopg2 favorite I've already installed the dependencies with sudo apt-get build-dep python-psycopg2 and then installing psycopg2 with sudo pip install psycopg2 and even with easy_install psycopg2. But even after all this, if I run python3 code.py I get ImportError: No module named 'psycopg2' If I run sudo apt-get build-dep python3-psycopg2 I get Picking 'psycopg2' as source package instead of 'python3-psycopg2' 0 upgraded, 0 newly installed, 0 to remove and 144 http://stackoverflow.com/questions/28900950/importerror-no-module-named-psycopg2 not upgraded. Same with sudo apt-get build-dep python-psycopg2 Please help. python share|improve this question asked Mar 6 '15 at 14:31 user2316393 10125 Are you installing psycopg2 in your virtual env? if not... After running sudo apt-get build-dep python-psycopg2. Create a virtual env and try installing psycopg2 in the virtual env. –user1846747 Mar 6 '15 at 14:37 @DivakarDass can you please point me to some tutorials which tell about installing psycopg2 in virtual env? I am new to python and don't know much about virtual env. –user2316393 Mar 6 '15 at 14:41 add a comment| 3 Answers 3 active oldest votes up vote 0 down vote accepted its always better to work in virtualenv and not mess up with your system try: virtualenv -p /usr/bin/python3 test_env source test_env/bin/activate pip install psycopg2 run python and try to import if you insist on installing it on your systems python try: pip3 install psycopg2 share|improve this answer answered Mar 6 '15 at 14:40 Urban48 536215 Virtualenv didn't work. But pip3 install psycopg2 works! Thanks. –user2316393 Mar 6 '15 at 14:49 if you dont have virtualenv installed do pip install virtualenv its best practice to use it for your projec
Sign in Pricing Blog Support https://github.com/django-oscar/django-oscar/issues/1523 Search GitHub This repository Watch 216 Star 2,181 Fork 879 django-oscar/django-oscar Code Issues 208 Pull requests 73 Projects 0 http://askbot.org/en/question/7691/no-module-named-psycopg2/ Wiki Pulse Graphs New issue django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2._psycopg' #1523 Closed alfared opened this Issue no module Oct 16, 2014 · 1 comment Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 3 participants alfared commented Oct 16, 2014 Hello. I had such a issue. When i building the demo no module named site (oscar) $ make demo (oscar) $ sites/demo/manage.py runserver I retrieved next exceptions Happy hacking! ================================================================================== # Install additional requirements pip install -r requirements_demo.txt bla bla bla # Create database # Breaks on Travis because of https://github.com/django-extensions/django-extensions/issues/489 if [ -z "" ]; then sites/demo/manage.py reset_db --router=default --noinput; fi Traceback (most recent call last): File "/opt/django-oscar/oscar/lib/python3.4/site-packages/Django-1.7-py3.4.egg/django/db/backends/postgresql_psycopg2/base.py", line 23, in
No module named psycopg2 psycopg2 initialization asked 2012-05-22 21:14:32 -0500 Pepe 71 ●7 ●3 ●14 I'm still having problems initializing askbot on Windows. Look what I got whenever I ran python manage.py syncdb: (ENV) C:\Users\Francisko\ENV\Whatzz>python manage.py syncdb Traceback (most recent call last): File "manage.py", line 11, in