You can install to virtualenv localy like this: "easy_install 
http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.4.win32-pyx.x-pg9.0.3-release.exe";
 
- thanks to @ig0774 <http://stackoverflow.com/users/274466/ig0774>
 from http://stackoverflow.com/a/5383266


On Sunday, April 14, 2013 8:29:05 PM UTC+3, Sanjay Bhangar wrote:
>
> On Windows, I'd strongly recommend just installing the pre-compiled 
> binaries for these sort've things, unless you're experienced with compiling 
> software / making this sort've thing work on Windows ..
>
> So, install something like 
> http://www.stickpeople.com/projects/python/win-psycopg/ and then, make 
> sure your virtualenv is configured to use system-site-packages. (if you are 
> using the latest virtualenv, you would need to maybe re-create the 
> virtualenv with "virtualenv --system-site-packages ." .. ) - just google 
> virtualenv system-site-packages if that does not fully make sense :-)
>
> It's probably "better" to use pip and install it inside your virtualenv, 
> but on Windows, I could never figure that out :-), and installing the .exe 
> files and using --system-site-packages seems to work fine for most things 
> .. it should be fairly rare that you require two different versions of 
> something like psycopg2 for different projects, so it should not be 
> problematic to have it installed system-wide ..
>
> All the best,
> Sanjay
>
>
>
>
> On Sun, Apr 14, 2013 at 10:17 PM, Serdar Dalgic 
> <s...@serdardalgic.org<javascript:>
> > wrote:
>
>> On Sun, Apr 14, 2013 at 5:45 PM, Mustafa Tulu 
>> <musta...@gmail.com<javascript:>> 
>> wrote:
>> > Hi All,
>>
>> Hi;
>>
>> >
>> > When I try to install the package into my virtualenv in pycharm, it 
>> tries to
>> > compile the source into binaries, it fails at linking stage, giving 
>> errors
>> > like:
>> >  Creating library build\temp.win32-2.7\Release\psycopg\_psycopg.lib and
>> > object build\temp.win32-2.7\Release\psycopg\_psycopg.exp
>> >     pqpath.obj : error LNK2019: unresolved external symbol _PQclear
>> > referenced in function _pq_raise
>> >     connection_int.obj : error LNK2001: unresolved external symbol 
>> _PQclear
>> >     cursor_type.obj : error LNK2001: unresolved external symbol _PQclear
>> >     error_type.obj : error LNK2001: unresolved external symbol _PQclear
>> >     pqpath.obj : error LNK2019: unresolved external symbol 
>> _PQerrorMessage
>> > referenced in function _pq_raise
>> >
>>
>> This problem is not django-specific.
>>
>> Make sure you have python-dev and libpq-dev packages installed on your
>> environment. After that, try "pip install psycopg2"
>>
>> --
>> - Serdar Dalgıç <s...@serdardalgic.org <javascript:>>
>> FLOSS Developer, Life & Nature Hacker
>> twitter: https://twitter.com/serdaroncode
>>
>> --
>> 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...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bb2aa2b1-88b7-4afa-8b77-c583fa380c2e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to