官网的安装说明http://opensource.hyves.org/concurrence/install.html#install
我们在安装之前,要先安装一个工具
easy_install先下载
与python 对应的egg
File | Type | Py Version | Uploaded on | Size | # downloads |
---|---|---|---|---|---|
setuptools-0.6c11-1.src.rpm (md5) built for redhat 4.3 | RPM | any | 2009-10-20 | 263KB | 20074 |
setuptools-0.6c11-py2.3.egg (md5) | Python Egg | 2.3 | 2009-10-20 | 1MB | 11531 |
setuptools-0.6c11-py2.4.egg (md5) | Python Egg | 2.4 | 2009-10-20 | 329KB | 184646 |
setuptools-0.6c11-py2.5.egg (md5) | Python Egg | 2.5 | 2009-10-20 | 325KB | 441868 |
setuptools-0.6c11-py2.6.egg (md5) | Python Egg | 2.6 | 2009-10-20 | 325KB | 716193 |
setuptools-0.6c11-py2.7.egg (md5) | Python Egg | 2.7 | 2010-07-08 | 324KB | 412558 |
setuptools-0.6c11.tar.gz (md5) | Source | 2009-10-20 | 250KB | 194660 | |
setuptools-0.6c11.win32-py2.3.exe (md5) | MS Windows installer | 2.3 | 2009-10-20 | 218KB | 7380 |
setuptools-0.6c11.win32-py2.4.exe (md5) | MS Windows installer | 2.4 | 2009-10-20 | 222KB | 6134 |
setuptools-0.6c11.win32-py2.5.exe (md5) | MS Windows installer | 2.5 | 2009-10-20 | 222KB | 40554 |
setuptools-0.6c11.win32-py2.6.exe (md5) | MS Windows installer | 2.6 | 2009-10-20 | 222KB | 120261 |
setuptools-0.6c11.win32-py2.7.exe (md5) | MS Windows installer | 2.7 | 2010-07-08 | 222KB | 91244 |
sh setuptools-0.6c9-py2.4.egg --prefix=~我在安装过程中,这一command出错,
hmatoMacBook-Air:Downloads h$ sh setuptools-0.6c11-py2.6.egg --prefix=~error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 2] No such file or directory: '/Users/h/lib/python2.6/site-packages/test-easy-install-743.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Users/h/lib/python2.6/site-packages
This directory does not currently exist. Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).
hmatoMacBook-Air:Downloads h$ sudo sh setuptools-0.6c11-py2.6.egg --prefix=~
Password:
我是系统中已经有python 担它打不到,,打错地方了, /Users/h/lib/python2.6/site-packages
把command 改成去到〜
sh setuptools-0.6c9-py2.4.egg --prefix=
下载到的egg文件要改名,,把后面的sh去了不然会出错的
hmatoMacBook-Air:Downloads h$ mv setuptools-0.6c11-py2.6.egg.sh setuptools-0.6c11-py2.6.egg
再运行
easy_install pyrex
下面的command会出错
easy_install concurrence提示有 SandboxViolation: ... 出错时
python -c "from Pyrex.Compiler import Scanning;Scanning.get_lexicon()"
还会出现在这样的error
sudo easy_install concurrenceSearching for concurrence
Reading http://pypi.python.org/simple/concurrence/
Reading http://opensource.hyves.org/concurrence
Best match: concurrence 0.3.1
Downloading http://concurrence.googlecode.com/files/concurrence-0.3.1.tar.gz
Processing concurrence-0.3.1.tar.gz
Running concurrence-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-BcTww6/concurrence-0.3.1/egg-dist-tmp-R5IGSU
lib/concurrence/concurrence._event.c:32:19: error: event.h: No such file or directory
lib/concurrence/concurrence._event.c:68: error: field ‘ev’ has incomplete type
lib/concurrence/concurrence._event.c: In function ‘__pyx_f_11concurrence_6_event_5event___init__’:
lib/concurrence/concurrence._event.c:301: warning: implicit declaration of function ‘evtimer_set’
lib/concurrence/concurrence._event.c:322: warning: implicit declaration of function ‘event_set’
lib/concurrence/concurrence._event.c: In function ‘__pyx_f_11concurrence_6_event_5event_add’:
lib/concurrence/concurrence._event.c:436: warning: implicit declaration of function ‘event_add’
lib/concurrence/concurrence._event.c: In function ‘__pyx_f_11concurrence_6_event_5event_pending’:
lib/concurrence/concurrence._event.c:517: warning: implicit declaration of function ‘event_pending’
lib/concurrence/concurrence._event.c: In function ‘__pyx_f_11concurrence_6_event_5event_delete’:
lib/concurrence/concurrence._event.c:554: warning: implicit declaration of function ‘event_del’
这里有需要安装一下
libevent-devlinux 下就直接
apt-get install python-dev apt-get install libevent-dev
python-dev 一般都有,,出错了,就要安装,,我是没出错,就没有安装了,自己带了吧
我现在用的是mac
先去http://mac.softpedia.com/progDownload/libevent-Download-47611.html 下载一个
libevent 2.0.11: Free Download
easy_install greenlet
stackless
去 www.stackless.com. 下载一个包,安装一下就行了UBUNTU: ./configure --prefix=/opt/stackless --with-readline --with-zlib=/usr/include make make install OSX (Leopard): ./configure --prefix=/opt/stackless --enable-framework --enable-stacklessfewerregisters --with-readline --with-zlib=/usr/include echo '#define SETPGRP_HAVE_ARG' >> pyconfig.h make make install上面的command 不一定用的到,,我mac 下是下载了一个
Mac OS X users
- Python 3.1.3: stackless-3.1.3-macosx10.5.dmg (14.1 MB) (md5 checksum)
- Python 2.7.1: stackless-2.7.1-macosx10.5.dmg (18.0 MB) (md5 checksum)
- Python 2.6.5: stackless-2.6.5-macosx10.5-2010-03-24.dmg (17.9 MB) (md5 checksum)
File | Type | Py Version | Uploaded on | Size | # downloads |
---|---|---|---|---|---|
setuptools-0.6c11-1.src.rpm (md5) built for redhat 4.3 | RPM | any | 2009-10-20 | 263KB | 20074 |
setuptools-0.6c11-py2.3.egg (md5) | Python Egg | 2.3 | 2009-10-20 | 1MB | 11531 |
setuptools-0.6c11-py2.4.egg (md5) | Python Egg | 2.4 | 2009-10-20 | 329KB | 184646 |
setuptools-0.6c11-py2.5.egg (md5) | Python Egg | 2.5 | 2009-10-20 | 325KB | 441868 |
setuptools-0.6c11-py2.6.egg (md5) | Python Egg | 2.6 | 2009-10-20 | 325KB | 716193 |
setuptools-0.6c11-py2.7.egg (md5) | Python Egg | 2.7 | 2010-07-08 | 324KB | 412558 |
setuptools-0.6c11.tar.gz (md5) | Source | 2009-10-20 | 250KB | 194660 |
File | Type | Py Version | Uploaded on | Size | # downloads |
---|---|---|---|---|---|
setuptools-0.6c11-1.src.rpm (md5) built for redhat 4.3 | RPM | any | 2009-10-20 | 263KB | 20074 |
setuptools-0.6c11-py2.3.egg (md5) | Python Egg | 2.3 | 2009-10-20 | 1MB | 11531 |
setuptools-0.6c11-py2.4.egg (md5) | Python Egg | 2.4 | 2009-10-20 | 329KB | 184646 |
setuptools-0.6c11-py2.5.egg (md5) | Python Egg | 2.5 | 2009-10-20 | 325KB | 441868 |
setuptools-0.6c11-py2.6.egg (md5) | Python Egg | 2.6 | 2009-10-20 | 325KB | 716193 |
setuptools-0.6c11-py2.7.egg (md5) | Python Egg | 2.7 | 2010-07-08 | 324KB | 412558 |
setuptools-0.6c11.tar.gz (md5) | Source | 2009-10-20 | 250KB | 194660 |
File | Type | Py Version | Uploaded on | Size | # downloads |
---|---|---|---|---|---|
setuptools-0.6c11-1.src.rpm (md5) built for redhat 4.3 | RPM | any | 2009-10-20 | 263KB | 20074 |
setuptools-0.6c11-py2.3.egg (md5) | Python Egg | 2.3 | 2009-10-20 | 1MB | 11531 |
setuptools-0.6c11-py2.4.egg (md5) | Python Egg | 2.4 | 2009-10-20 | 329KB | 184646 |
setuptools-0.6c11-py2.5.egg (md5) | Python Egg | 2.5 | 2009-10-20 | 325KB | 441868 |
setuptools-0.6c11-py2.6.egg (md5) | Python Egg | 2.6 | 2009-10-20 | 325KB | 716193 |
setuptools-0.6c11-py2.7.egg (md5) | Python Egg | 2.7 | 2010-07-08 | 324KB | 412558 |
setuptools-0.6c11.tar.gz (md5) | Source | 2009-10-20 | 250KB | 194660 |