简体   繁体   中英

How to update Python PygreSQL package on Linux Debian?

I have Linux Debian installed. In debian repository the newest stable version of PygreSQL is 4.0

The newest version of PygreSQL is 5.0.2 but I don't see debian in thier site: http://www.pygresql.org/download/index.html

What should I do?

  1. Download the source code of the package
  2. Install it locally within your python installation with virtualenv: pip install --no-index --find-links file:your path here name of module

system wide: sudo pip install --no-index --find-links file:your path here name of module

Maybe you have to add dependent modules too.

Hope that helps.

JJ

First you'll have to uninstall the version of pygresql you have right now. Then follow one of the methods below.

To install Pygresql system wide, you'll need to follow the Compiling Manually steps. You can also make a package by following How to Package For Debian . This is probably the best way which gives your dev ops and/or sys admins the most control.

Another way would be to install development packages like python-dev, libpython-dev, libpq-dev (I may be missing some, but hopefully you get the big picture), then running a pip install pygresql . I'd try this out in a virtualenv before installing it system wide.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM