环境:Ubuntu 12.04, Anaconda-1.9.2-Linux-x86_64
首先安装binstar
conda install binstar
然后使用binstar搜索psycopg2的网上安装路径
binstar search -t conda psycopg2
Run ‘binstar show <USER/PACKAGE>’ to get more details:
Packages:
Name | Access | Package Types | Summary
————————- | ———— | ————— | ——————–
auto/psycopg2database | published | conda | http://jimmyg.org/work/code/psycopg2databa se/index.html
bencpeters/psycopg2 | public | conda | Python-PostgreSQL Database Adapter
chuongdo/psycopg2 | public | conda | Python-PostgreSQL Database Adapter
dan_blanchard/psycopg2 | public | conda | http://initd.org/psycopg/
davidbgonzalez/psycopg2 | public | conda | None
deric/psycopg2 | public | conda | None
jonrowland/psycopg2 | public | conda | None
kevincal/psycopg2 | published | conda |
topper/psycopg2-windows | public | conda | PostgreSQL adapter for the Python programm ing language
trent/psycopg2 | public | conda | None
Found 10 packages
可知其中一个路径为bencpeters/psycopg2
安装如下:
conda install -c https://conda.binstar.org/bencpeters psycopg2
Fetching package metadata: .Error: unknown host: http://repo.continuum.io/pkgs/pro/linux-64/
.Error: unknown host: http://repo.continuum.io/pkgs/free/linux-64/
.
Solving package specifications: .
Package plan for installation in environment /home/jerry/anaconda:
The following packages will be downloaded:
package | build
—————————|—————–
psycopg2-2.5.3 | py27_0 393 KB
The following packages will be linked:
package | build
—————————|—————–
psycopg2-2.5.3 | py27_0 hard-link
Proceed ([y]/n)? y
Fetching packages …
psycopg2-2.5.3-py27_0.tar.bz2 28% |#######################