I'm trying install psycopg2 into my virtualenv. I've tried pip I've tried easy_install nothing is working... installing from pip is the more desirable choice but it has to be done through nwcell's github package https://github.com/nwcell/psycopg2-windows heres the command I've been using:
pip install git+https://github.com/nwcell/psycopg2-windows.git@win64-py34#egg=psycopg2
Windows. Download and Install Git making sure Use Git from the Windows Command Prompt is selected when prompted. At the end, reopen the Command Prompt. The git command should now be recognized as expected.
git/ folder inside a software development project. You can deploy Git locally, or use it via a hosted service, such as Github, Gitlab or Bitbucket. One of the advantages of using pip together with Git is to install the latest commits of unreleased Python packages as branches from Github.
Pip has since optimized its Git install mechanism, so that is normally faster now. Tarball URL's may still be useful in niche situations though, for example if you need to install on a system without Git installed.
As the docs say:
pip supports installing from Git, Mercurial, Subversion and Bazaar, and detects the type of VCS using url prefixes: "git+", "hg+", "bzr+", "svn+".
pip requires a working VCS command on your path: git, hg, svn, or bzr.
So, if you don't have a working git
command on your %PATH%
, you can't pip install git+<anything>
. To fix it, install git
, and make sure it ends up on your %PATH%
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With