在Mac上安装请求模块时,Python 2.7崩溃

时间:2014-02-06 21:47:15

标签: python macos python-2.7

  

$ ./easy_install --index-url = http://pypiserver.test.net:8081/simple请求
  正在搜索请求   阅读pypiserver.test.net:8081/simple/requests/
  最佳匹配:要求2.2.1
  正在下载pypiserver.test.net:8081/packages/requests-2.2.1.tar.gz
  处理请求-2.2.1.tar.gz
  写/var/folders/cn/fs0bhsg14k73_tj4g81yh5sw000d4g/T/easy_install-ONrhgU/requests-2.2.1/setup.cfg
  运行请求-2.2.1 / setup.py -q bdist_egg --dist-dir / var / folders /cn/fs0bhsg14k73_tj4g81yh5sw000d4g/T/easy_install-ONrhgU/requests-2.2.1/egg-dist-tmp-iC7PX9
  细分错误:11

更新:我认为这就是我构建Python的方式,就好像我刚刚下载了python2.7.6构建的版本,请求模块安装得很好。我确实需要构建python,因为这是我们发布过程的一部分。

1 个答案:

答案 0 :(得分:2)

我跑

pip install requests

工作正常:

$ pip install requests
Downloading/unpacking requests
  Downloading requests-2.2.1.tar.gz (421kB): 421kB downloaded
  Running setup.py egg_info for package requests

Installing collected packages: requests
  Running setup.py install for requests

Successfully installed requests
Cleaning up...