简体   繁体   中英

Python 2.7 crashing when installing requests module on Mac

$ ./easy_install --index-url= http://pypiserver.test.net:8081/simple requests
Searching for requests
Reading pypiserver.test.net:8081/simple/requests/
Best match: requests 2.2.1
Downloading pypiserver.test.net:8081/packages/requests-2.2.1.tar.gz
Processing requests-2.2.1.tar.gz
Writing /var/folders/cn/fs0bhsg14k73_tj4g81yh5sw000d4g/T/easy_install-ONrhgU/requests-2.2.1/setup.cfg
Running requests-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
Segmentation fault: 11

UPDATE: I think it the way I built Python as if I just downloaded the python2.7.6 built version, requests module installed fine. I do need to build python though as that is part of our release process.

I run

pip install requests

that works fine:

$ 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...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM