psycopg2 - decide if we need to change the docs to use psycopg2-binary instead
From release 2.8 (currently 2.75), the psycopg2
wheel package will be renamed - to continue installing from binary use psycopg2-binary
instead.
Although it advises we should build from source rather than relying on binaries, I think for our purposes the binary will suit us well. It may be that using pip install psycopg2-binary
will work equally well on Windows and Linux, avoiding the need to find it on http://www.lfd.uci.edu/~gohlke/pythonlibs/#psycopg
Comments (23)
-
-
reporter I assume that existing users can just carry on with whatever they have?
-
reporter Thanks for testing :)
-
That's OK. Yes, existing users can carry on with what they already have. I just wanted to make sure that the binary version worked OK on Windows.
-
reporter Brilliant. I was hoping you might!
-
reporter - changed milestone to 0.8.1
I think we should add this to the current beta, given that @dplatten has tested it.
-
reporter Needs further revision. Added -binary. Refs
#643→ <<cset 4bd5c614cfe4>>
-
reporter Python 2 no longer installed by default. Pip install URL changed. Numpy can be installed via pip on Linux - Windows too?. psycopg2-binary means libpq-dev no longer needed. Refs
#643. [skip ci] docs only→ <<cset 6878e9247754>>
-
reporter @dplatten - I don't know if it is something you can easily test, but do you know on Windows if you need to install the numpy files from that website, or whether
pip install numpy
will suffice?It does on Ubuntu 18.04 - the current instructions say to install via
apt install python-numpy
instead... -
reporter Removed libpq-dev from pg install instructions, updated to v10, moved section to bottom as irrelevant for most users. Refs
#643[skip ci] docs only→ <<cset 344c3a4d35c5>>
-
I've just installed numpy on Windows in a virtualenv using:
pip install numpy --no-cache-dir
The
--no-cache-dir
was to force pip to download any packages, rather than use my local cache.The above worked perfectly:
(numpy_test) D:\David\Code\python\numpy_test>python Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> print numpy.__version__ 1.15.0
-
reporter Thanks. I wonder if it was ever necessary or if the package changed?
-
reporter Switched Windows to use pip version of numpy and psycopg2-binary both online and off. Refs
#643[skip ci] docs only→ <<cset 30ff52230b6a>>
-
reporter Formatting correction. Refs
#643[skip ci] docs only→ <<cset e7852a726cbd>>
-
reporter Numpy is pulled in as an openrem requirement Refs
#643[skip ci] docs only→ <<cset f18aa0157866>>
-
reporter Pydicom 1.x is pulled in when you download pynetdicom - important this isn't installed. Refs
#643[skip ci] docs only→ <<cset 5fb33f285279>>
-
reporter Use
--no-deps
instead. Refs#643[skip ci] docs only→ <<cset d3259dbd8d42>>
-
reporter Simplified install. Refs
#643[skip ci] docs only→ <<cset b06f11e3f7a7>>
-
reporter Formatting changes. Refs
#643[skip ci] docs only→ <<cset 96923da212bf>>
-
reporter Copying python packages comment now redundant. Refs
#643[skip ci] docs only→ <<cset 4ef6402f8549>>
-
reporter - changed status to resolved
Closed in PR merge 0d9a760
-
reporter -
assigned issue to
-
assigned issue to
-
reporter Updated all the version numbers to 0.8.1b1. Added in missing ref
#643to changes.→ <<cset 101b82671d6f>>
- Log in to comment
I've just tried to install psycopg2-binary on a Windows OpenREM test install. First, I did
pip install psycopg2-binary
; then I didpip uninstall psycopg2
. The test server failed to run, complaining that it couldn't find the psycopg2 stuff. I solved this by uninstallingpsycopg2-binary
andpsycopg2
, and then reinstallingpsycopg2-binary
. It then worked fine. I think the bottom line is that existing users ofpsycopg2
must uninstall this first, and then installpsycopg2-binary
. Hope that makes sense.