0

I updated my system to Mavericks and I have a python code using pgdb. How can I install pgdb on my new mac?

I tried

sudo pip install git+git://github.com/cancerhermit/pgdb.py.git

And

sudo pip install pgdb

And

brew install pgdb

And I have even tried to install it from PyCharm directly (my first try).

Antonin
  • 1,748
  • 7
  • 19
  • 24

2 Answers2

1

I just downloaded the source code on PyGreSQL website. Then I typed the following commands:

python setup.py build
python setup.py install

Based on what is recommended on PyGreSQL install page.

Antonin
  • 1,748
  • 7
  • 19
  • 24
  • Thanks. It worked for me. Somehow installing using pip got me pgdb, but not the 'connect' module within it, which is weird. But installing this way worked perfect. – whitehat Jul 06 '17 at 00:22
1

I am using Mac OSX ( E-Caption- 10.11.2 ).

pip install PyGreSQL

Worked for me.

>     Collecting PyGreSQL   Downloading PyGreSQL-4.1.1.tgz (100kB)
>     100% |████████████████████████████████| 102kB 2.9MB/s
> 
> Building wheels for collected packages: PyGreSQL   
>   Running setup.py
>    bdist_wheel for PyGreSQL   Stored in directory:
>    <blah>441bbb4b4f3da670bbd24afa6a8a887cb1b16359dc4c26f445 Successfully
>    built PyGreSQL Installing collected packages: PyGreSQL Successfully
>    installed PyGreSQL-4.1.1
kadalamittai
  • 2,076
  • 1
  • 16
  • 19