SORU
12 NİSAN 2011, Salı


Yükleme PostgreSQL geliştirme sistemi üzerinde yüklü olduğunda virtualenv içine psycopg2

PostgreSQL benim gelişimi üzerinde yüklü değil, virtualenv sistem Mac Pro OS X 10.6 içine psycopg2 yüklemek mümkün mü?

Çalıştırdığımda ** 5, benim içinde pip install psycopg2 hata aşağıda gösterildiği aldı.

Bir server Django kullanarak eski bir veritabanına bağlanmak için çalışıyorum, ve mümkünse geliştirme sistemi üzerinde PostgreSQL yüklemek istemem.

Neden PostgreSQL yüklenmiyor?

PostgreSQL homebrew kullanarak yüklerken bir hata aldım. Xcode4—ve benim MacBook Pro Xcode4—yüklü sadece ben ve gcc 4.0 eksik ile ilgili olduğunu düşünüyorum. Ancak, bu başka bir StackOverflow soru için bir sorundur.

Update 8:37 Nisan 12, 2011 DUYUYORUM:Yine de bu benim MacBook Pro PostgreSQL yükleme olmadan mümkün olup olmadığını bilmek istiyorum. Ancak, brew update koştum ve brew install --force ossp-uuid ve şimdi brew install postgresql işleri ile ossp-uuıd yeniden yükleme zorunda. PostgreSQL başarıyla yüklenmiştir, 9* *benim virtualenv içinden başardı.

pip install psycopg2 hata

$ pip install psycopg2
Downloading/unpacking psycopg2
  Running setup.py egg_info for package psycopg2

    Error: pg_config executable not found.

    Please add the directory containing pg_config to the PATH
    or specify the full executable path with the option:

        python setup.py build_ext --pg-config /path/to/pg_config build ...

    or with the pg_config option in 'setup.cfg'.
    Complete output from command python setup.py egg_info:
    running egg_info

writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found

Error: pg_config executable not found.

Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /Users/matthew/.pip/pip.log

Ön Araştırma

Aşağıda ön araştırma olarak okuduğum makaleler:

CEVAP
7 AĞUSTOS 2012, Salı


apt-get install libpq-dev

debian squeeze üzerinde yardımcı oldu bana

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Engadget

    Engadget

    18 EYLÜL 2006
  • Samantha Crain

    Samantha Cra

    30 EKİM 2008
  • Semantic Mastery

    Semantic Mas

    30 EKİM 2013