How to install psycopg2 with “pip” on Python?

I’m using virtualenv and I need to install “psycopg2”. I have done the following: pip install http://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.tar.gz#md5=24f4368e2cfdc1a2b03282ddda814160 And I have the following messages: Downloading/unpacking http://pypi.python.org/packages/source/p/psycopg2/psycopg2 -2.4.tar.gz#md5=24f4368e2cfdc1a2b03282ddda814160 Downloading psycopg2-2.4.tar.gz (607Kb): 607Kb downloaded Running setup.py egg_info for package from http://pypi.python.org/packages/sou rce/p/psycopg2/psycopg2-2.4.tar.gz#md5=24f4368e2cfdc1a2b03282ddda814160 Error: pg_config executable not found. Please add the directory containing pg_config to the PATH or specify … Read more

How to state in requirements.txt a direct github source

I’ve installed a library using the command pip install git+git://github.com/mozilla/elasticutils.git which installs it directly from a Github repository. This works fine and I want to have that dependency in my requirements.txt. I’ve looked at other tickets like this but that didn’t solve my problem. If I put something like -f git+git://github.com/mozilla/elasticutils.git elasticutils==0.7.dev in the requirements.txt … Read more

How do I update/upgrade pip itself from inside my virtual environment?

I’m able to update pip-managed packages, but how do I update pip itself? According to pip –version, I currently have pip 1.1 installed in my virtualenv and I want to update to the latest version. What’s the command for that? Do I need to use distribute or is there a native pip or virtualenv command? … Read more

pip install from git repo branch

Trying to pip install a repo’s specific branch. Google tells me to pip install https://github.com/user/repo.git@branch The branch’s name is issue/34/oscar-0.6 so I did pip install https://github.com/tangentlabs/django-oscar-paypal.git@/issue/34/oscar-0.6 but its returning a 404. How do I install this branch? 8 s 8 Prepend the url prefix git+ (See VCS Support): pip install git+https://github.com/tangentlabs/django-oscar-paypal.git@issue/34/oscar-0.6 And specify the branch … Read more

pip install mysql-python fails with EnvironmentError: mysql_config not found

This is the error I get (mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install mysql-python Downloading/unpacking mysql-python Downloading MySQL-python-1.2.3.tar.gz (70Kb): 70Kb downloaded Running setup.py egg_info for package mysql-python sh: mysql_config: not found Traceback (most recent call last): File “<string>”, line 14, in <module> File “/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py”, line 15, in <module> metadata, options = get_config() File “setup_posix.py”, line 43, in get_config libs … Read more