Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install compiled Python modules under pyenv on OS X 10.10 #273

Closed
hindman opened this issue Nov 18, 2014 · 38 comments
Closed

Unable to install compiled Python modules under pyenv on OS X 10.10 #273

hindman opened this issue Nov 18, 2014 · 38 comments

Comments

@hindman
Copy link

hindman commented Nov 18, 2014

I'm running into problems installing Python modules under pyenv on OS X 10.10.

Here's the scenario:

  • Start with a fresh install of OS X 10.10.

  • Get all software updates via App Store (OS X 10.10.1)

  • Install Xcode, run it once, and install its command line tools

    xcode-select --install

  • Install homebrew and pyenv

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    brew doctor
    brew install readline
    brew link readline --force # Should I do this?
    brew install pyenv

  • Install a Python and try to install a module. Many modules work fine (Python only), but those requiring compilation seem to fail (I used paramiko as the example)

    pyenv install 2.7.6
    pip install paramiko

Here is the failure message:

Command /Users/mhindman/.pyenv/versions/2.7.6/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip-3YfuUe-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/pycrypto

I realize this could be a pip issue; however, I'm able to install Python and modules like paramiko if I install the Python directly under homebrew, rather than via pyenv.

Any ideas? Thanks.

The rest of this is the pip log file:

Downloading/unpacking paramiko
  Getting page https://pypi.python.org/simple/paramiko/
  URLs to search for versions for paramiko:
  * https://pypi.python.org/simple/paramiko/
  Analyzing links from page https://pypi.python.org/simple/paramiko/
    Found link https://pypi.python.org/packages/2.6/p/paramiko/paramiko-1.13.1-py2.py3-none-any.whl#md5=2d28a672b66abaaa99bb3eb1e0288649 (from https://pypi.python.org/simple/paramiko/), version: 1.13.1
    Found link https://pypi.python.org/packages/2.6/p/paramiko/paramiko-1.13.2-py2.py3-none-any.whl#md5=3fce6097c5a8a298a67cba7d6760f519 (from https://pypi.python.org/simple/paramiko/), version: 1.13.2
    Found link https://pypi.python.org/packages/2.6/p/paramiko/paramiko-1.14.0-py2.py3-none-any.whl#md5=cc57661a22484fd78188e89bbadfa1a1 (from https://pypi.python.org/simple/paramiko/), version: 1.14.0
    Found link https://pypi.python.org/packages/2.6/p/paramiko/paramiko-1.14.1-py2.py3-none-any.whl#md5=c4d9b23f258279cdffaf9225a9bff22f (from https://pypi.python.org/simple/paramiko/), version: 1.14.1
    Found link https://pypi.python.org/packages/2.6/p/paramiko/paramiko-1.15.0-py2.py3-none-any.whl#md5=84e8d4e709957096d838aed6878efb25 (from https://pypi.python.org/simple/paramiko/), version: 1.15.0
    Found link https://pypi.python.org/packages/2.6/p/paramiko/paramiko-1.15.1-py2.py3-none-any.whl#md5=c1bdb230ea898d01550bb19a6e8ea849 (from https://pypi.python.org/simple/paramiko/), version: 1.15.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.1-bulbasaur.zip#md5=e32431cd7649146dca5861bce306e56b (from https://pypi.python.org/simple/paramiko/), version: 0.1-bulbasaur
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.1-charmander.zip#md5=f7a14837f49d5870f1b7ebf957cbee17 (from https://pypi.python.org/simple/paramiko/), version: 0.1-charmander
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-doduo.zip#md5=8f26db8130f90e64b139277fa9b2653e (from https://pypi.python.org/simple/paramiko/), version: 0.9-doduo
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-eevee.zip#md5=4688a6f60339021ba5c71e017abcbcf5 (from https://pypi.python.org/simple/paramiko/), version: 0.9-eevee
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-fearow.zip#md5=69dc72434f88381c6d03d43082db511e (from https://pypi.python.org/simple/paramiko/), version: 0.9-fearow
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-gyarados.zip#md5=5619cb4035cacc20a9f8cf4be1eb90a8 (from https://pypi.python.org/simple/paramiko/), version: 0.9-gyarados
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-horsea.zip#md5=3b5730be2e84ba13c8945bdb75e73e13 (from https://pypi.python.org/simple/paramiko/), version: 0.9-horsea
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-ivysaur.zip#md5=7dca2bd69afd0108757390ee1d547448 (from https://pypi.python.org/simple/paramiko/), version: 0.9-ivysaur
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.0.zip#md5=9b2487ac9fc4778603a80aeac6cc9bbf (from https://pypi.python.org/simple/paramiko/), version: 1.0
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.1.zip#md5=916b9337e5557245d5b9ce85bca9d9d3 (from https://pypi.python.org/simple/paramiko/), version: 1.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.10.0.tar.gz#md5=df3dc87d1501cd529b4f68cf20d5b249 (from https://pypi.python.org/simple/paramiko/), version: 1.10.0
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.10.1.tar.gz#md5=4ba105e2d8535496fd633889396b20b7 (from https://pypi.python.org/simple/paramiko/), version: 1.10.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.10.2.tar.gz#md5=7cb9fd330d7bb6799c392f3822866a73 (from https://pypi.python.org/simple/paramiko/), version: 1.10.2
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.10.3.tar.gz#md5=e817e606156009fa3ffd751cfa2062e3 (from https://pypi.python.org/simple/paramiko/), version: 1.10.3
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.10.4.tar.gz#md5=aefe6dcb510104eb667a91ad32537472 (from https://pypi.python.org/simple/paramiko/), version: 1.10.4
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.10.5.tar.gz#md5=592175f8dc414ffe7cedf1e48795484f (from https://pypi.python.org/simple/paramiko/), version: 1.10.5
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.10.6.tar.gz#md5=0f56ac48b7f1fd091f48bb4e9832a1f1 (from https://pypi.python.org/simple/paramiko/), version: 1.10.6
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.10.7.tar.gz#md5=34361ca5c38bd39eecf8b546277781dd (from https://pypi.python.org/simple/paramiko/), version: 1.10.7
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.11.0.tar.gz#md5=a2c55dc04904bd08d984533703177084 (from https://pypi.python.org/simple/paramiko/), version: 1.11.0
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.11.1.tar.gz#md5=4f79dbb5741bf900f09ec513807e1c1a (from https://pypi.python.org/simple/paramiko/), version: 1.11.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.11.2.tar.gz#md5=02a7450eff824744d1367d6064378ce8 (from https://pypi.python.org/simple/paramiko/), version: 1.11.2
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.11.3.tar.gz#md5=b1b50714aee3a6734074ecc5415813e2 (from https://pypi.python.org/simple/paramiko/), version: 1.11.3
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.11.4.tar.gz#md5=26fc154fd934454fb5a404ecb0650e4b (from https://pypi.python.org/simple/paramiko/), version: 1.11.4
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.11.5.tar.gz#md5=04828fcc9e2468aa305c481607e2c7c6 (from https://pypi.python.org/simple/paramiko/), version: 1.11.5
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.11.6.tar.gz#md5=f92b404c2bf9762cf1dfcaf4a2efeba9 (from https://pypi.python.org/simple/paramiko/), version: 1.11.6
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.12.0.tar.gz#md5=4187f77b1a5a313c899993930e30c321 (from https://pypi.python.org/simple/paramiko/), version: 1.12.0
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.12.1.tar.gz#md5=ae4544dc0a1419b141342af89fcf0dd9 (from https://pypi.python.org/simple/paramiko/), version: 1.12.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.12.2.tar.gz#md5=1453e37f868b76af84dd1319e08c53f9 (from https://pypi.python.org/simple/paramiko/), version: 1.12.2
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.12.3.tar.gz#md5=ee844f812d91628d7dcb1f8d70ea2973 (from https://pypi.python.org/simple/paramiko/), version: 1.12.3
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.12.4.tar.gz#md5=166e6a9ffad23a1140fea55fbdfb8847 (from https://pypi.python.org/simple/paramiko/), version: 1.12.4
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.13.0.tar.gz#md5=acc53ee396dd907220a4141e118a845d (from https://pypi.python.org/simple/paramiko/), version: 1.13.0
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.13.1.tar.gz#md5=9dc0f3d822cce52e65b86f69f31bb555 (from https://pypi.python.org/simple/paramiko/), version: 1.13.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.13.2.tar.gz#md5=4cb278b31d1696fe7df7f29fd24b5649 (from https://pypi.python.org/simple/paramiko/), version: 1.13.2
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.14.0.tar.gz#md5=e26324fd398af68ad506fe98853835c3 (from https://pypi.python.org/simple/paramiko/), version: 1.14.0
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.14.1.tar.gz#md5=6165e0274f9e4e4b82d9b44e793d8fc6 (from https://pypi.python.org/simple/paramiko/), version: 1.14.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.15.0.tar.gz#md5=64797782f6c33657d905ba5c1ac48ab4 (from https://pypi.python.org/simple/paramiko/), version: 1.15.0
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.15.1.tar.gz#md5=48c274c3f9b1282932567b21f6acf3b5 (from https://pypi.python.org/simple/paramiko/), version: 1.15.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.2.zip#md5=b66e9d9bf666b2d94796c23a6c800994 (from https://pypi.python.org/simple/paramiko/), version: 1.2
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.3.1.zip#md5=804c1277a512b97aa277a863fb044f69 (from https://pypi.python.org/simple/paramiko/), version: 1.3.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.3.zip#md5=7c83f8312d35e84f80899b81b4368e81 (from https://pypi.python.org/simple/paramiko/), version: 1.3
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.4.zip#md5=58d5f189c5325b925ed06ab4308f829c (from https://pypi.python.org/simple/paramiko/), version: 1.4
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.5.1.zip#md5=110e84152106ee7f465582350571cc60 (from https://pypi.python.org/simple/paramiko/), version: 1.5.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.5.2.zip#md5=e9150f837a00fb95847657684873f201 (from https://pypi.python.org/simple/paramiko/), version: 1.5.2
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.5.4.zip#md5=a580fab7d295e7c731d0c270465d9560 (from https://pypi.python.org/simple/paramiko/), version: 1.5.4
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.6.1.zip#md5=8dbd556c0f6c8bb8bf8b97f0e05a910e (from https://pypi.python.org/simple/paramiko/), version: 1.6.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.6.2.zip#md5=d43879c86fcc100d199df425a3fcaf05 (from https://pypi.python.org/simple/paramiko/), version: 1.6.2
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.6.3.zip#md5=5b3269d7cbc724fd86dc21d412f05edc (from https://pypi.python.org/simple/paramiko/), version: 1.6.3
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.6.4.zip#md5=ab390b2b11ce782063bffdc97be8ab0c (from https://pypi.python.org/simple/paramiko/), version: 1.6.4
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.6.zip#md5=07c69af81962243907133ed02741b0c6 (from https://pypi.python.org/simple/paramiko/), version: 1.6
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.7.1.zip#md5=f242d6589c9b5106cd517f9d41a3468c (from https://pypi.python.org/simple/paramiko/), version: 1.7.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.7.2.zip#md5=bf7268a722d5760149fb9dfc1432a6a6 (from https://pypi.python.org/simple/paramiko/), version: 1.7.2
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.7.4.tar.gz#md5=23061d68bbcb68dbcc8afbe4cb034f62 (from https://pypi.python.org/simple/paramiko/), version: 1.7.4
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.7.5.zip#md5=684dd033b7b84bedf06360ecb8983654 (from https://pypi.python.org/simple/paramiko/), version: 1.7.5
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.7.6.zip#md5=b1cfe0cd55772115f808a11c1baba8a0 (from https://pypi.python.org/simple/paramiko/), version: 1.7.6
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.7.7.1.zip#md5=4a9d3bab15a0cbf8b0b828aefd395993 (from https://pypi.python.org/simple/paramiko/), version: 1.7.7.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.7.7.2.zip#md5=f6b2dc341ee62c30574570182b7a5744 (from https://pypi.python.org/simple/paramiko/), version: 1.7.7.2
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.7.zip#md5=11eb2a8688c6719a24a01f82153ffe4e (from https://pypi.python.org/simple/paramiko/), version: 1.7
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.8.0.tar.gz#md5=a4401dba9bbf71b056244481d2d3b16a (from https://pypi.python.org/simple/paramiko/), version: 1.8.0
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.8.1.tar.gz#md5=bc2a5b7b4a7f80eed0172b8dc5519df1 (from https://pypi.python.org/simple/paramiko/), version: 1.8.1
    Found link https://pypi.python.org/packages/source/p/paramiko/paramiko-1.9.0.tar.gz#md5=b78472021ff6586dd61ad6972032f54f (from https://pypi.python.org/simple/paramiko/), version: 1.9.0
  Ignoring link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.1-bulbasaur.zip#md5=e32431cd7649146dca5861bce306e56b (from https://pypi.python.org/simple/paramiko/), version 0.1-bulbasaur is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.1-charmander.zip#md5=f7a14837f49d5870f1b7ebf957cbee17 (from https://pypi.python.org/simple/paramiko/), version 0.1-charmander is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-doduo.zip#md5=8f26db8130f90e64b139277fa9b2653e (from https://pypi.python.org/simple/paramiko/), version 0.9-doduo is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-eevee.zip#md5=4688a6f60339021ba5c71e017abcbcf5 (from https://pypi.python.org/simple/paramiko/), version 0.9-eevee is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-fearow.zip#md5=69dc72434f88381c6d03d43082db511e (from https://pypi.python.org/simple/paramiko/), version 0.9-fearow is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-gyarados.zip#md5=5619cb4035cacc20a9f8cf4be1eb90a8 (from https://pypi.python.org/simple/paramiko/), version 0.9-gyarados is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-horsea.zip#md5=3b5730be2e84ba13c8945bdb75e73e13 (from https://pypi.python.org/simple/paramiko/), version 0.9-horsea is a pre-release (use --pre to allow).
  Ignoring link https://pypi.python.org/packages/source/p/paramiko/paramiko-0.9-ivysaur.zip#md5=7dca2bd69afd0108757390ee1d547448 (from https://pypi.python.org/simple/paramiko/), version 0.9-ivysaur is a pre-release (use --pre to allow).
  Using version 1.15.1 (newest of versions: 1.15.1, 1.15.1, 1.15.0, 1.15.0, 1.14.1, 1.14.1, 1.14.0, 1.14.0, 1.13.2, 1.13.2, 1.13.1, 1.13.1, 1.13.0, 1.12.4, 1.12.3, 1.12.2, 1.12.1, 1.12.0, 1.11.6, 1.11.5, 1.11.4, 1.11.3, 1.11.2, 1.11.1, 1.11.0, 1.10.7, 1.10.6, 1.10.5, 1.10.4, 1.10.3, 1.10.2, 1.10.1, 1.10.0, 1.9.0, 1.8.1, 1.8.0, 1.7.7.2, 1.7.7.1, 1.7.6, 1.7.5, 1.7.4, 1.7.2, 1.7.1, 1.7, 1.6.4, 1.6.3, 1.6.2, 1.6.1, 1.6, 1.5.4, 1.5.2, 1.5.1, 1.4, 1.3.1, 1.3, 1.2, 1.1, 1.0)
  Downloading from URL https://pypi.python.org/packages/2.6/p/paramiko/paramiko-1.15.1-py2.py3-none-any.whl#md5=c1bdb230ea898d01550bb19a6e8ea849 (from https://pypi.python.org/simple/paramiko/)
Downloading/unpacking pycrypto>=2.1,!=2.4 (from paramiko)
  Getting page https://pypi.python.org/simple/pycrypto/
  URLs to search for versions for pycrypto>=2.1,!=2.4 (from paramiko):
  * https://pypi.python.org/simple/pycrypto/
  Analyzing links from page https://pypi.python.org/simple/pycrypto/
    Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.0.1.tar.gz#md5=4d5674f3898a573691ffb335e8d749cd (from https://pypi.python.org/simple/pycrypto/), version: 2.0.1
    Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.1.0.tar.gz#md5=1d3eb04f06e6f09a080bc37fb019f9bf (from https://pypi.python.org/simple/pycrypto/), version: 2.1.0
    Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.2.tar.gz#md5=4f0ed728b14b98f09120cb2ec461ec98 (from https://pypi.python.org/simple/pycrypto/), version: 2.2
    Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.3.tar.gz#md5=2b811cfbfc342d83ee614097effb8101 (from https://pypi.python.org/simple/pycrypto/), version: 2.3
    Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.4.1.tar.gz#md5=c2a1404a848797fb0806f3e11c29ef15 (from https://pypi.python.org/simple/pycrypto/), version: 2.4.1
    Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.4.tar.gz#md5=274fa44c30a320d56460a93fdd95e702 (from https://pypi.python.org/simple/pycrypto/), version: 2.4
    Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.5.tar.gz#md5=783e45d4a1a309e03ab378b00f97b291 (from https://pypi.python.org/simple/pycrypto/), version: 2.5
    Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz#md5=55a61a054aa66812daf5161a0d5d7eda (from https://pypi.python.org/simple/pycrypto/), version: 2.6.1
    Found link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.tar.gz#md5=88dad0a270d1fe83a39e0467a66a22bb (from https://pypi.python.org/simple/pycrypto/), version: 2.6
  Ignoring link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.0.1.tar.gz#md5=4d5674f3898a573691ffb335e8d749cd (from https://pypi.python.org/simple/pycrypto/), version 2.0.1 doesn't match >=2.1,!=2.4
  Ignoring link https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.4.tar.gz#md5=274fa44c30a320d56460a93fdd95e702 (from https://pypi.python.org/simple/pycrypto/), version 2.4 doesn't match >=2.1,!=2.4
  Using version 2.6.1 (newest of versions: 2.6.1, 2.6, 2.5, 2.4.1, 2.3, 2.2, 2.1.0)
  Downloading from URL https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz#md5=55a61a054aa66812daf5161a0d5d7eda (from https://pypi.python.org/simple/pycrypto/)
  Running setup.py (path:/private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/pycrypto/setup.py) egg_info for package pycrypto
    running egg_info
    creating pip-egg-info/pycrypto.egg-info
    writing pip-egg-info/pycrypto.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pycrypto.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pycrypto.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/pycrypto.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/pycrypto.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/pycrypto.egg-info/SOURCES.txt'
  Source in /private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/pycrypto has version 2.6.1, which satisfies requirement pycrypto>=2.1,!=2.4 (from paramiko)
Downloading/unpacking ecdsa>=0.11 (from paramiko)
  Getting page https://pypi.python.org/simple/ecdsa/
  URLs to search for versions for ecdsa>=0.11 (from paramiko):
  * https://pypi.python.org/simple/ecdsa/
  Analyzing links from page https://pypi.python.org/simple/ecdsa/
    Found link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.10.tar.gz#md5=e95941b3bcbf1726472bb724d7478551 (from https://pypi.python.org/simple/ecdsa/), version: 0.10
    Found link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.11.tar.gz#md5=8ef586fe4dbb156697d756900cb41d7c (from https://pypi.python.org/simple/ecdsa/), version: 0.11
    Found link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.6.tar.gz#md5=7a4750df7b7b5147a78a69ff92056ead (from https://pypi.python.org/simple/ecdsa/), version: 0.6
    Found link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.7.tar.gz#md5=cdf12b87e2f3cd96bac221b87a8eee52 (from https://pypi.python.org/simple/ecdsa/), version: 0.7
    Found link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.8.tar.gz#md5=a3575705afb24d7cbc1694960d3965b1 (from https://pypi.python.org/simple/ecdsa/), version: 0.8
    Found link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.9.tar.gz#md5=2b9c35245ce391d6b7d8f991aad5c630 (from https://pypi.python.org/simple/ecdsa/), version: 0.9
  Ignoring link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.10.tar.gz#md5=e95941b3bcbf1726472bb724d7478551 (from https://pypi.python.org/simple/ecdsa/), version 0.10 doesn't match >=0.11
  Ignoring link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.6.tar.gz#md5=7a4750df7b7b5147a78a69ff92056ead (from https://pypi.python.org/simple/ecdsa/), version 0.6 doesn't match >=0.11
  Ignoring link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.7.tar.gz#md5=cdf12b87e2f3cd96bac221b87a8eee52 (from https://pypi.python.org/simple/ecdsa/), version 0.7 doesn't match >=0.11
  Ignoring link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.8.tar.gz#md5=a3575705afb24d7cbc1694960d3965b1 (from https://pypi.python.org/simple/ecdsa/), version 0.8 doesn't match >=0.11
  Ignoring link https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.9.tar.gz#md5=2b9c35245ce391d6b7d8f991aad5c630 (from https://pypi.python.org/simple/ecdsa/), version 0.9 doesn't match >=0.11
  Downloading from URL https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.11.tar.gz#md5=8ef586fe4dbb156697d756900cb41d7c (from https://pypi.python.org/simple/ecdsa/)
  Running setup.py (path:/private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/ecdsa/setup.py) egg_info for package ecdsa
    running egg_info
    creating pip-egg-info/ecdsa.egg-info
    writing pip-egg-info/ecdsa.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/ecdsa.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/ecdsa.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/ecdsa.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/ecdsa.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/ecdsa.egg-info/SOURCES.txt'
  Source in /private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/ecdsa has version 0.11, which satisfies requirement ecdsa>=0.11 (from paramiko)
Installing collected packages: paramiko, pycrypto, ecdsa
  Running setup.py install for pycrypto
    Running command /Users/mhindman/.pyenv/versions/2.7.6/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip-3YfuUe-record/install-record.txt --single-version-externally-managed --compile
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.10-x86_64-2.7
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto
    copying lib/Crypto/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto
    copying lib/Crypto/pct_warnings.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/hashalgo.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/HMAC.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/MD2.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/MD4.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/MD5.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/RIPEMD.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/SHA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/SHA224.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/SHA256.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/SHA384.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    copying lib/Crypto/Hash/SHA512.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/AES.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/ARC2.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/ARC4.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/blockalgo.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/Blowfish.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/CAST.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/DES.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/DES3.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    copying lib/Crypto/Cipher/XOR.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    copying lib/Crypto/Util/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    copying lib/Crypto/Util/_number_new.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    copying lib/Crypto/Util/asn1.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    copying lib/Crypto/Util/Counter.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    copying lib/Crypto/Util/number.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    copying lib/Crypto/Util/py21compat.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    copying lib/Crypto/Util/py3compat.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    copying lib/Crypto/Util/randpool.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    copying lib/Crypto/Util/RFC1751.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    copying lib/Crypto/Util/winrandom.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Random
    copying lib/Crypto/Random/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random
    copying lib/Crypto/Random/_UserFriendlyRNG.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random
    copying lib/Crypto/Random/random.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/Fortuna
    copying lib/Crypto/Random/Fortuna/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/Fortuna
    copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/Fortuna
    copying lib/Crypto/Random/Fortuna/FortunaGenerator.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/Fortuna
    copying lib/Crypto/Random/Fortuna/SHAd256.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/Fortuna
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG
    copying lib/Crypto/Random/OSRNG/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG
    copying lib/Crypto/Random/OSRNG/fallback.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG
    copying lib/Crypto/Random/OSRNG/nt.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG
    copying lib/Crypto/Random/OSRNG/posix.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG
    copying lib/Crypto/Random/OSRNG/rng_base.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest
    copying lib/Crypto/SelfTest/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest
    copying lib/Crypto/SelfTest/st_common.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_XOR.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_RIPEMD.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_AllOrNothing.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_chaffing.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_importKey.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random
    copying lib/Crypto/SelfTest/Random/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random
    copying lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random
    copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random
    copying lib/Crypto/SelfTest/Random/test_rpoolcompat.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/Fortuna
    copying lib/Crypto/SelfTest/Random/Fortuna/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/Fortuna
    copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/Fortuna
    copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/Fortuna
    copying lib/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/Fortuna
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/test_fallback.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/test_generic.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/test_nt.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/test_posix.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/test_winrandom.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Signature
    copying lib/Crypto/SelfTest/Signature/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Signature
    copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Signature
    copying lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Signature
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Protocol
    copying lib/Crypto/Protocol/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Protocol
    copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Protocol
    copying lib/Crypto/Protocol/Chaffing.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Protocol
    copying lib/Crypto/Protocol/KDF.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Protocol
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey
    copying lib/Crypto/PublicKey/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey
    copying lib/Crypto/PublicKey/_DSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey
    copying lib/Crypto/PublicKey/_RSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey
    copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey
    copying lib/Crypto/PublicKey/DSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey
    copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey
    copying lib/Crypto/PublicKey/pubkey.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey
    copying lib/Crypto/PublicKey/RSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey
    creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Signature
    copying lib/Crypto/Signature/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Signature
    copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Signature
    copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Signature
    running build_ext
    running build_configure
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for __gmpz_init in -lgmp... no
    checking for __gmpz_init in -lmpir... no
    checking whether mpz_powm is declared... no
    checking whether mpz_powm_sec is declared... no
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for inttypes.h... (cached) yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking for stdint.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking for inline... inline
    checking for int16_t... yes
    checking for int32_t... yes
    checking for int64_t... yes
    checking for int8_t... yes
    checking for size_t... yes
    checking for uint16_t... yes
    checking for uint32_t... yes
    checking for uint64_t... yes
    checking for uint8_t... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking for memmove... yes
    checking for memset... yes
    configure: creating ./config.status
    config.status: creating src/config.h
    warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
    building 'Crypto.Hash._MD2' extension
    creating build/temp.macosx-10.10-x86_64-2.7
    creating build/temp.macosx-10.10-x86_64-2.7/src
    clang -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/Users/mhindman/.pyenv/versions/2.7.6/include/python2.7 -c src/MD2.c -o build/temp.macosx-10.10-x86_64-2.7/src/MD2.o
    src/MD2.c:44:19: warning: unused variable 'md2_oid' [-Wunused-const-variable]
    static const char md2_oid[] = { 0x06, 0x08, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x02, 0x02 };
                      ^
    1 warning generated.
    clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/Users/mhindman/.pyenv/versions/2.7.6/lib build/temp.macosx-10.10-x86_64-2.7/src/MD2.o -o build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash/_MD2.so
    ld: file not found: python.exe
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'clang' failed with exit status 1
    Complete output from command /Users/mhindman/.pyenv/versions/2.7.6/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip-3YfuUe-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_py

creating build

creating build/lib.macosx-10.10-x86_64-2.7

creating build/lib.macosx-10.10-x86_64-2.7/Crypto

copying lib/Crypto/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto

copying lib/Crypto/pct_warnings.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/hashalgo.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/HMAC.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/MD2.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/MD4.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/MD5.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/RIPEMD.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/SHA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/SHA224.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/SHA256.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/SHA384.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

copying lib/Crypto/Hash/SHA512.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/AES.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/ARC2.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/ARC4.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/blockalgo.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/Blowfish.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/CAST.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/DES.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/DES3.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

copying lib/Crypto/Cipher/XOR.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Cipher

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

copying lib/Crypto/Util/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

copying lib/Crypto/Util/_number_new.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

copying lib/Crypto/Util/asn1.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

copying lib/Crypto/Util/Counter.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

copying lib/Crypto/Util/number.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

copying lib/Crypto/Util/py21compat.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

copying lib/Crypto/Util/py3compat.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

copying lib/Crypto/Util/randpool.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

copying lib/Crypto/Util/RFC1751.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

copying lib/Crypto/Util/winrandom.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Util

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Random

copying lib/Crypto/Random/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random

copying lib/Crypto/Random/_UserFriendlyRNG.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random

copying lib/Crypto/Random/random.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/Fortuna

copying lib/Crypto/Random/Fortuna/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/Fortuna

copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/Fortuna

copying lib/Crypto/Random/Fortuna/FortunaGenerator.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/Fortuna

copying lib/Crypto/Random/Fortuna/SHAd256.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/Fortuna

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG

copying lib/Crypto/Random/OSRNG/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG

copying lib/Crypto/Random/OSRNG/fallback.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG

copying lib/Crypto/Random/OSRNG/nt.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG

copying lib/Crypto/Random/OSRNG/posix.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG

copying lib/Crypto/Random/OSRNG/rng_base.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Random/OSRNG

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest

copying lib/Crypto/SelfTest/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest

copying lib/Crypto/SelfTest/st_common.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

copying lib/Crypto/SelfTest/Cipher/test_XOR.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Cipher

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/test_RIPEMD.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/test_SHA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Hash

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol

copying lib/Crypto/SelfTest/Protocol/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol

copying lib/Crypto/SelfTest/Protocol/test_AllOrNothing.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol

copying lib/Crypto/SelfTest/Protocol/test_chaffing.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol

copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol

copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Protocol

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey

copying lib/Crypto/SelfTest/PublicKey/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey

copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey

copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey

copying lib/Crypto/SelfTest/PublicKey/test_importKey.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey

copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/PublicKey

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random

copying lib/Crypto/SelfTest/Random/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random

copying lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random

copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random

copying lib/Crypto/SelfTest/Random/test_rpoolcompat.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/Fortuna

copying lib/Crypto/SelfTest/Random/Fortuna/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/Fortuna

copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/Fortuna

copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/Fortuna

copying lib/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/Fortuna

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG

copying lib/Crypto/SelfTest/Random/OSRNG/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG

copying lib/Crypto/SelfTest/Random/OSRNG/test_fallback.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG

copying lib/Crypto/SelfTest/Random/OSRNG/test_generic.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG

copying lib/Crypto/SelfTest/Random/OSRNG/test_nt.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG

copying lib/Crypto/SelfTest/Random/OSRNG/test_posix.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG

copying lib/Crypto/SelfTest/Random/OSRNG/test_winrandom.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Random/OSRNG

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util

copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util

copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util

copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util

copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util

copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Util

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Signature

copying lib/Crypto/SelfTest/Signature/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Signature

copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Signature

copying lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/SelfTest/Signature

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Protocol

copying lib/Crypto/Protocol/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Protocol

copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Protocol

copying lib/Crypto/Protocol/Chaffing.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Protocol

copying lib/Crypto/Protocol/KDF.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Protocol

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey

copying lib/Crypto/PublicKey/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey

copying lib/Crypto/PublicKey/_DSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey

copying lib/Crypto/PublicKey/_RSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey

copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey

copying lib/Crypto/PublicKey/DSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey

copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey

copying lib/Crypto/PublicKey/pubkey.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey

copying lib/Crypto/PublicKey/RSA.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/PublicKey

creating build/lib.macosx-10.10-x86_64-2.7/Crypto/Signature

copying lib/Crypto/Signature/__init__.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Signature

copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Signature

copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.macosx-10.10-x86_64-2.7/Crypto/Signature

running build_ext

running build_configure

checking for gcc... gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking for __gmpz_init in -lgmp... no

checking for __gmpz_init in -lmpir... no

checking whether mpz_powm is declared... no

checking whether mpz_powm_sec is declared... no

checking how to run the C preprocessor... gcc -E

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking for inttypes.h... (cached) yes

checking limits.h usability... yes

checking limits.h presence... yes

checking for limits.h... yes

checking stddef.h usability... yes

checking stddef.h presence... yes

checking for stddef.h... yes

checking for stdint.h... (cached) yes

checking for stdlib.h... (cached) yes

checking for string.h... (cached) yes

checking wchar.h usability... yes

checking wchar.h presence... yes

checking for wchar.h... yes

checking for inline... inline

checking for int16_t... yes

checking for int32_t... yes

checking for int64_t... yes

checking for int8_t... yes

checking for size_t... yes

checking for uint16_t... yes

checking for uint32_t... yes

checking for uint64_t... yes

checking for uint8_t... yes

checking for stdlib.h... (cached) yes

checking for GNU libc compatible malloc... yes

checking for memmove... yes

checking for memset... yes

configure: creating ./config.status

config.status: creating src/config.h

warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

building 'Crypto.Hash._MD2' extension

creating build/temp.macosx-10.10-x86_64-2.7

creating build/temp.macosx-10.10-x86_64-2.7/src

clang -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/Users/mhindman/.pyenv/versions/2.7.6/include/python2.7 -c src/MD2.c -o build/temp.macosx-10.10-x86_64-2.7/src/MD2.o

src/MD2.c:44:19: warning: unused variable 'md2_oid' [-Wunused-const-variable]

static const char md2_oid[] = { 0x06, 0x08, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x02, 0x02 };

                  ^

1 warning generated.

clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/Users/mhindman/.pyenv/versions/2.7.6/lib build/temp.macosx-10.10-x86_64-2.7/src/MD2.o -o build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash/_MD2.so

ld: file not found: python.exe

clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: command 'clang' failed with exit status 1

----------------------------------------
Cleaning up...
  Removing temporary dir /private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman...
Command /Users/mhindman/.pyenv/versions/2.7.6/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip-3YfuUe-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/pycrypto
Exception information:
Traceback (most recent call last):
  File "/Users/mhindman/.pyenv/versions/2.7.6/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/Users/mhindman/.pyenv/versions/2.7.6/lib/python2.7/site-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/Users/mhindman/.pyenv/versions/2.7.6/lib/python2.7/site-packages/pip/req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/Users/mhindman/.pyenv/versions/2.7.6/lib/python2.7/site-packages/pip/req.py", line 706, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/Users/mhindman/.pyenv/versions/2.7.6/lib/python2.7/site-packages/pip/util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /Users/mhindman/.pyenv/versions/2.7.6/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip-3YfuUe-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/5x/wwh1lqfn175_b35rfdk3d76r0000gn/T/pip_build_mhindman/pycrypto
@yyuu
Copy link
Contributor

yyuu commented Nov 29, 2014

I'm using OS X 10.10.1 and confirmed I can install paramiko into pyenv built CPython 2.7.8.

% sw_vers
ProductName:    Mac OS X
ProductVersion: 10.10.1
BuildVersion:   14B25

The actual error is as follows. I don't know why it's trying to use python.exe though it's not on Windows.

clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/Users/mhindman/.pyenv/versions/2.7.6/lib build/temp.macosx-10.10-x86_64-2.7/src/MD2.o -o build/lib.macosx-10.10-x86_64-2.7/Crypto/Hash/_MD2.so

ld: file not found: python.exe

clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: command 'clang' failed with exit status 1

@yyuu
Copy link
Contributor

yyuu commented Nov 29, 2014

pyenv will find brew's readline and try to use it if installed. Basically, you don't have to do brew link readline.

I couldn't confirm this build error of paramiko with default build of CPython 2.7.8 (setuptools 7.0; pip 1.5.6). Did you specify some ./configure options when building CPython?

@hindman
Copy link
Author

hindman commented Nov 29, 2014

Thanks for looking into this and for the info about brew link readline. I was puzzled by the python.exe error as well.

When I generated the error message I was using a box with clean install of 10.10.1 (erased hard drive before install), and I did not set any special options when building CPython. On my primary computer, I upgraded to 10.10.1 without erasing hard drive and without a new install of brew, pyenv, etc. and everything works fine. However, when I try to install this stuff on a clean-install of 10.10.1, I get the errors noted above.

@yyuu
Copy link
Contributor

yyuu commented Nov 30, 2014

I confirmed same happens on my OS X 10.10.1, at least, with CPython 2.7.6 and 2.7.7. This might be a build issue of paramiko package itself, though, I couldn't find any related issues on the project. Upgrading to CPython 2.7.8 will fix the issue.

@ThisGuyCodes
Copy link

I can confirm I run into the same issue (and error message) with gevent on python 2.7.5

Digging a bit more into running the build manually step by step, I did get this specific step to not error-out by:

  • Finding the location of the python binary (not the shim used by pyenv)
  • Manually running the clang command listed in the log, but replacing python.exe with the path to my python binary, ie: /Users/username/.pyenv/versions/adid/bin/python2.7

But I don't know what needs to be done to get the build process to use that instead of trying python.exe

@ThisGuyCodes
Copy link

I fixed this by doing something odd:
brew install python
I got the idea from here.

Now the line in question looks like: clang -bundle -undefined dynamic_lookup ... and things install fine. This must have something to do with the way the installer 'finds' your python binary.

@hindman
Copy link
Author

hindman commented Dec 4, 2014

I repeated the installation described in my initial comment, this time using Python 2.7.8 rather than 2.7.6 (and also skipping the brew link readline step). I observed the same thing as yyuu: 2.7.8 worked, and 2.7.6 did not. That's a good enough fix for me.

@ThisGuyCodes
Copy link

This is definitely not a pyenv specific issue. I've confirmed I get the same build issues with python < 2.7.8 outside of pyenv. So I think this can be closed.

@yyuu
Copy link
Contributor

yyuu commented Dec 5, 2014

@conslo Agreed. This isn't a pyenv specific issue. Thanks for you investigation 😃

@yyuu yyuu closed this as completed Dec 5, 2014
@zen0wu
Copy link

zen0wu commented Dec 19, 2014

I met with the same problem, and when I switched from 2.7.5 (installed by pyenv) to system it works. I guess it's still related to pyenv. I notice that when using the system version, the 'clang' command doesn't have an argument -bundle_loader python.exe, maybe that's a start to investigate?

UPDATE: switch to system I means, pyenv global system

@ThisGuyCodes
Copy link

I got the same error when compiling python libraries while using python < 2.7.8 without pyenv installed at all. @shivawu which package did you try installing while under the system 2.7.5?

@zen0wu
Copy link

zen0wu commented Dec 19, 2014

I was trying to install pyyaml, 3.10, and my system is 10.10.1, python
2.7.6.

On Fri, Dec 19, 2014 at 2:51 PM, Travis Johnson notifications@github.com
wrote:

I got the same error when compiling python libraries while using python <
2.7.8 without pyenv installed at all. @shivawu
https://github.com/shivawu which package did you try installing while
under the system 2.7.5?


Reply to this email directly or view it on GitHub
#273 (comment).

Chenyang WU
Shanghai Jiao Tong University
Address: No. 800 Dong Chuan Rd, Minhang District, Shanghai

@ThisGuyCodes
Copy link

I'm on 10.10.1 as well, I'll experiment with this tonight and see if I can run down a cause

@yyuu
Copy link
Contributor

yyuu commented Dec 20, 2014

Interesting. I found -bundle_loader in BLDSHARED of CPython 2.7.7 on OS X 10.10.1 with default configure options.

% PYENV_VERSION=2.7.7 python -c 'import sysconfig;print(sysconfig.get_config_var("BLDSHARED"))'
clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/Users/yyuu/.pyenv/versions/2.7.7/lib

In CPython 2.7.8, unlike 2.7.7, it doesn't have -bundle_loader python.exe.

% PYENV_VERSION=2.7.8 python -c 'import sysconfig;print(sysconfig.get_config_var("`"))'
clang -bundle -undefined dynamic_lookup -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/Users/yyuu/.pyenv/versions/2.7.8/lib

I need more investigation on usage of BLDSHARED.

@john-kurkowski
Copy link

I wonder if this was a bad comparison of MACOSX_DEPLOYMENT_TARGET in Python's own build steps. 10.2 always compares > 10.10 (Yosemite's version). This comparison was fixed in Python Issue21811. Not realistic to backport, so that's why Yosemite users are stuck building from source 2.7.8+.

@ThisGuyCodes
Copy link

2. ... modules may be built with obsolete link options ("-bundle -bundle_loader python" rather than "-bundle -undefined dynamic_lookup") and some extension module builds may fail as a result.

This is exactly what I am observing. Even if we can't push for a backport, I wonder if there's a possibility of a workaround? Like make python think it's 10.9 when compiling things?

@kennytrytek-wf
Copy link

I was able to work around this issue by building pip wheels for all my requirements (specifically PyCrypto) in 2.7.8, and installing from wheels in a 2.7.6 virtual environment.

@pfhayes
Copy link

pfhayes commented Jul 13, 2015

@kennytrytek-wf 's solution also worked for me. Here is what I needed to do to get this working:

# This fails, with the python.exe error
pyenv global 2.7.6
pip install -r requirements.txt

# This works
pyenv global 2.7.9
pip wheel -r requirements.txt
pyenv global 2.7.6
pip install -r requirements.txt

@dmitrytokarev
Copy link

@conslo I had exact the same issue. brew install python fixed the issue for me. pip works like a champ now! Thanks!

@hebbo
Copy link

hebbo commented Feb 29, 2016

Hi,

I hit this problem while trying to setup my Ansible dev environment locally:

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.11
BuildVersion:   15A284
pyenv --version
pyenv 20160202-10-ga6f1f48
python --version
Python 2.7.6
which python
/Users/USERNAME/.pyenv/shims/python
    1 warning generated.
    clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl/lib -L/Users/angel/.pyenv/versions/2.7.6/lib build/temp.macosx-10.11-x86_64-2.7/src/MD2.o -o build/lib.macosx-10.11-x86_64-2.7/Crypto/Hash/_MD2.so
    ld: file not found: python.exe
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'clang' failed with exit status 1

Did anyone find a solution to this? None of the suggestions made on this thread worked for me. I am able to install pycrypto using Python 2.7.8 (within a pyenv environment) but I was not able to install it using 2.7.6.

Any help will be appreciated. Thanks in advance.

Angel

@ThisGuyCodes
Copy link

@hebbo The issue is actually a flaw in the way python detects what operating system you're using (having multiple digits after the version dot seems to break it, ie: 10.10, 10.11). And, as it is with bugs, the newer versions of python have it fixed. This is why 2.7.8 works but not 2.7.6 etc.

The older versions of python will not work because they are broken.

@hebbo
Copy link

hebbo commented Mar 1, 2016

@conslo Seems we will have to switch to 2.7.8 then if we waant to manage our local envs using pyenv. Thanks a lot for your quick reply.

@mikenerone
Copy link

Perhaps the fix could be backported into pyenv's python builds <2.7.8 since it breaks functionality, rendering pyenv useless for projects using those versions (unfortunately, we don't always have control over such constraints).

@ThisGuyCodes
Copy link

@mikenerone I don't think "backporting to an existing patch release" makes sense. Backporting to an existing feature release, sure (which would create a new patch release). But 2.7 is the only Python 2 version that's even supported right now.

Versions are meant to be immutable. If you change something and release the change then that's different software than the previous release, so it's a new version. You wouldn't want to automatically replace the 2.7.6 version that people are using out from under them by releasing new software with the same version number anymore than you'd want to implicitly upgrade people to new versions (which, as you describe, is something some places avoid)... because that's the same thing.

The process of upgrading from the 2.7.x you're on to, say, 2.7.11 (the current release) should be the same process you'd have to go through to upgrade to some 2.7.x.1 release sub-release-thing that you're requesting.

@mikenerone
Copy link

@conslo I'm normally in total agreement with your sentiment here, but in this case the result is that one's code can be perfectly fine, and yet locally with pyenv it doesn't work at all, which is already quite a difference in behavior. If one's target environment is, say, 2.7.5 and can't be changed immediately just to accommodate pyenv, the only local workaround right now is to use 2.7.8 for development instead and hope that's "close enough", which is what people are doing. Just patching this one backport into earlier versions (and pyenv does already have the precedent of patching the Python sources, btw) is much less likely to expose a substantive behavioral difference that that.

Sadly, there are no good answers here, including the "do nothing" answer. IMO, the least harmful answer should therefore be selected, and "it doesn't work at all" is the most harmful.

@ThisGuyCodes
Copy link

@mikenerone honestly I had no idea pyenv had a precedent of patching sources. If that's the case it seems viable. Very early in the thread I even suggested pyenv could perhaps do something to make python think it was on an earlier version of OSX during the compile.

Then perhaps someone should find the relevant patch and link it :)

(as an aside though, you should really look into updating the version of python you're using, 2.7.5 is 3 1/2 years older than the current 2.7.11, and they're point releases, so unlikely to break much if anything (though I'm assuming you have tests to check). On that note though 2.7.11 made some internal changes to ssl implementations, which in particular broke older versions of greenlet and thus gevent, so I'd suggest 2.7.10 as that's even less likely to break stuff)

@mikenerone
Copy link

mikenerone commented Jun 15, 2016

@conslo I hear ya, but the root of the holdup for a lot of people is the policy of their particular distro (particularly the major ones). There are ways to achieve newer Python versions, of course, but many people feel like when they do that, they're throwing away the benefit of using a major, supported distro in the first place (that said, in answer to your aside, we bit the bullet and are in the process of moving to Py3 anyway). The fact that so many development targets are these major distros with older Pythons is the reason pyenv not being able to support those versions is a significant problem.

Side note: those SSL changes you refer to were done in 2.7.9, and are already backported by those major distros, so that's usually not a concern (e.g. RedHat/CentOS have already done so with their current blessed Python, which is 2.7.5), so it's at least arguable that A. this sortof leaves pyenv as the only "real" hurdle for this situation, and B. it's hard to get away from those behavioral differences you mentioned regardless of what we do. ;)

@mikenerone
Copy link

Interestingly enough, this problem seems to have disappeared for me. The only thing I can think of that I changed is that I switched from homebrew to MacPorts. I don't care enough to test it myself :), but if you're still affected, you might give that a try.

@johnpneumann
Copy link

johnpneumann commented Jun 20, 2016

When attempting to install pymssql I encounter the same issue with python 2.7.6, but only when I install it with pyenv using ucs2 instead of ucs4. This is on OSX 10.11.5. If I install python 2.7.6 with ucs4, I can successfully install everything, however, ucs2 seems to break something, though I'm not sure what.

Failure

env CFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" pyenv install 2.7.6
pyenv virtualenv 2.7.6 testenv
pyenv activate testenv
pip install pymssql
Collecting pymssql
  Using cached pymssql-2.1.2.tar.gz
Building wheels for collected packages: pymssql
  Running setup.py bdist_wheel for pymssql ... error
  Complete output from command /Users/johnpneumann/.pyenv/versions/2.7.6/envs/codex-client/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/vb/6t_fymgd1fl2zf2ptvvbsxw40000gn/T/pip-build-zUIGUw/pymssql/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/vb/6t_fymgd1fl2zf2ptvvbsxw40000gn/T/tmp64n9CMpip-wheel- --python-tag cp27: setup.py: platform.system() => 'Darwin'
  setup.py: platform.architecture() => ('64bit', '')
  setup.py: platform.libc_ver() => ('', '')
  setup.py: Detected Darwin/Mac OS X.
      You can install FreeTDS with Homebrew or MacPorts, or by downloading
      and compiling it yourself.

      Homebrew (http://brew.sh/)
      --------------------------
      brew install freetds

      MacPorts (http://www.macports.org/)
      -----------------------------------
      sudo port install freetds

  setup.py: Not using bundled FreeTDS
  setup.py: include_dirs = ['/usr/local/include']
  setup.py: library_dirs = ['/usr/local/lib']
  running bdist_wheel
  running build
  running build_ext
  building '_mssql' extension
  creating build
  creating build/temp.macosx-10.11-x86_64-2.7
  clang -fno-strict-aliasing -I/usr/local/opt/openssl/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/Users/johnpneumann/.pyenv/versions/2.7.6/include/python2.7 -c _mssql.c -o build/temp.macosx-10.11-x86_64-2.7/_mssql.o -DMSDBLIB
  _mssql.c:28428:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function]
  static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
                                 ^
  _mssql.c:332:29: warning: unused function '__Pyx_Py_UNICODE_strlen' [-Wunused-function]
  static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
                              ^
  _mssql.c:28605:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
  static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                  ^
  _mssql.c:27898:27: warning: function '__Pyx_PyInt_As_long' is not needed and will not be emitted [-Wunneeded-internal-declaration]
  static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
                            ^
  _mssql.c:28082:27: warning: function '__Pyx_PyInt_As_char' is not needed and will not be emitted [-Wunneeded-internal-declaration]
  static CYTHON_INLINE char __Pyx_PyInt_As_char(PyObject *x) {
                            ^
  5 warnings generated.
  creating build/lib.macosx-10.11-x86_64-2.7
  clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl/lib -L/Users/johnpneumann/.pyenv/versions/2.7.6/lib -L/usr/local/opt/openssl/lib build/temp.macosx-10.11-x86_64-2.7/_mssql.o -L/usr/local/lib -lsybdb -o build/lib.macosx-10.11-x86_64-2.7/_mssql.so
  ld: file not found: python.exe
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  error: command 'clang' failed with exit status 1
<snip>

Success

env CFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" pyenv install 2.7.6
pyenv virtualenv 2.7.6 testenv
pyenv activate testenv
pip install pymssql

edit: We use such an old version of python for several reasons, namely due to support for Autodesk Maya among other 3D software packages.

@andreif
Copy link

andreif commented Mar 8, 2017

Well, brew install python and setting CFLAGS/LDFLAGS did not help.

Working solution

First, we confirm the issue

$ pyenv install 2.7.6
$ pyenv virtualenv 2.7.6 testme
$ pyenv activate testme
$ pip install --no-cache lxml
    ...
    ld: file not found: python.exe
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'clang' failed with exit status 1

Then, as @yyuu has mentioned in this thread in 2014, that sysconfig produces incorrect output. Let's see where it's stored:

$ grep bundle_loader /Users/andrei/.pyenv/versions/2.7.6/lib/python2.7/_sysconfigdata.py
./lib/python2.7/_sysconfigdata.py: 'BLDSHARED': 'clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl/lib -L/Users/andrei/.pyenv/versions/2.7.6/lib',
./lib/python2.7/_sysconfigdata.py: 'LDCXXSHARED': 'c++ -bundle -bundle_loader /Users/andrei/.pyenv/versions/2.7.6/bin/python2.7',
./lib/python2.7/_sysconfigdata.py: 'LDSHARED': 'clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl/lib -L/Users/andrei/.pyenv/versions/2.7.6/lib',

Now, if we try removing bundle_loader from clang arguments since Python 2.7.8+ does not have it there (DON'T DO IT YOURSELF):

$ sed -i -e "s/-bundle_loader python.exe//g" \ 
  /Users/andrei/.pyenv/versions/2.7.6/lib/python2.7/_sysconfigdata.py

$ pip install --no-cache lxml
    ...
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'clang' failed with exit status 1

It seems needed, so we use another way.

As you may have noticed, LDCXXSHARED points to Python correctly, so we try patching the others (in the original _sysconfigdata.py, so you have to restore the file manually or reinstall Python if you did the previous step 😄 ):

$ export p=/Users/andrei/.pyenv/versions/2.7.6
$ sed -i -e "s~-bundle_loader python.exe~-bundle_loader ${p}/bin/python2.7~g" \ 
  "$p/lib/python2.7/_sysconfigdata.py"

Or more aggressively, if you want to fix all python.exe cases in the file:

$ sed -i -e "s~python.exe~${p}/bin/python2.7~g" "$p/lib/python2.7/_sysconfigdata.py"

Now try installing:

$ pip install --no-cache lxml
Collecting lxml
  Downloading lxml-3.7.3.tar.gz (3.8MB)
    100% |████████████████████████████████| 3.8MB 49.0MB/s
Installing collected packages: lxml
  Running setup.py install for lxml ... done
Successfully installed lxml-3.7.3

Done!

@andreif
Copy link

andreif commented Mar 8, 2017

@yyuu Maybe include such patch in the installer scripts?

@andreif
Copy link

andreif commented Mar 8, 2017

@yyuu That's similar to what Homebrew does https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb#L206-L210

 # Prevent third-party packages from building against fragile Cellar paths
 inreplace [lib_cellar/"_sysconfigdata.py",
            lib_cellar/"config/Makefile",
            frameworks/"Python.framework/Versions/Current/lib/pkgconfig/python-2.7.pc"],
           prefix, opt_prefix

@jnw29
Copy link

jnw29 commented May 10, 2017

andreif's method worked for me in installing biopython via pip for Python 2.7.5

@dwcaraway
Copy link

@andreif 's also worked for me for issues with pyyaml for pyenv + virtualenv with python 2.7.6, MacOS Sierra 10.12.5

export p=/Users/$(whoami)/.pyenv/versions/2.7.6
sed -i -e "s~python.exe~${p}/bin/python2.7~g" "$p/lib/python2.7/_sysconfigdata.py"

@jalanb
Copy link

jalanb commented Aug 24, 2017

@andreif's method also worked for me in trying to install pycrypto (as a needed requirement for ansible) with Python 2.7.5 on OSX El Capitan 10.11.c

@frankV
Copy link

frankV commented Feb 3, 2018

On macOS Sierra 10.12.6, this worked for me:

$ export p=$(HOME)/.pyenv/versions/2.7.6
$ sed -i -e "s#python.exe#${p}/bin/python2.7#g" "$p/lib/python2.7/_sysconfigdata.py"
  • credit to this SO Answer for helping me see what I was missing.

@DylanCa
Copy link

DylanCa commented Feb 20, 2018

Spent 3 days searching everywhere for a solution, couldn't install psycopg2 lxml and paramiko with a specific version, and thanks to Andreif's solution, now it's working ! Thank you a lot !

  • MacOS High Sierra - 10.13.3
  • PyEnv 2.7.6

yyuu added a commit that referenced this issue Apr 25, 2018
ipatch added a commit to ipatch/pyenv that referenced this issue May 14, 2018
* 'master' of github.com:pyenv/pyenv:
  CPython 3.7.0b4
  v1.2.4
  Add pypy-portable 6.0.0
  CPython 2.7.15
  Add pypy 6.0.0
  Refactor test code of python-build. Use curl during tests by default
  Import latest changes from https://github.com/rbenv/ruby-build as of v20180424
  Address pyenv#273 via a patch from python#21811
  Rewrite python-build tests with using `PYTHON_BUILD_HTTP_CLIENT`
  Allow overriding HTTP client type based on environment variable `PYTHON_BUILD_HTTP_CLIENT` (pyenv#1126)
  Add basic test for rehash wait
  Fix rehash test to give up sooner after lock file's presence
  Renamed variable; s/PYENV_REHASH_LOCK_TIMEOUT/PYENV_REHASH_TIMEOUT/
  Experimental implementation to wait rehash until acquiring lock
@mouday
Copy link

mouday commented Mar 27, 2019

Well, brew install python and setting CFLAGS/LDFLAGS did not help.

Working solution

First, we confirm the issue

$ pyenv install 2.7.6
$ pyenv virtualenv 2.7.6 testme
$ pyenv activate testme
$ pip install --no-cache lxml
    ...
    ld: file not found: python.exe
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'clang' failed with exit status 1

Then, as @yyuu has mentioned in this thread in 2014, that sysconfig produces incorrect output. Let's see where it's stored:

$ grep bundle_loader /Users/andrei/.pyenv/versions/2.7.6/lib/python2.7/_sysconfigdata.py
./lib/python2.7/_sysconfigdata.py: 'BLDSHARED': 'clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl/lib -L/Users/andrei/.pyenv/versions/2.7.6/lib',
./lib/python2.7/_sysconfigdata.py: 'LDCXXSHARED': 'c++ -bundle -bundle_loader /Users/andrei/.pyenv/versions/2.7.6/bin/python2.7',
./lib/python2.7/_sysconfigdata.py: 'LDSHARED': 'clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl/lib -L/Users/andrei/.pyenv/versions/2.7.6/lib',

Now, if we try removing bundle_loader from clang arguments since Python 2.7.8+ does not have it there (DON'T DO IT YOURSELF):

$ sed -i -e "s/-bundle_loader python.exe//g" \ 
  /Users/andrei/.pyenv/versions/2.7.6/lib/python2.7/_sysconfigdata.py

$ pip install --no-cache lxml
    ...
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'clang' failed with exit status 1

It seems needed, so we use another way.

As you may have noticed, LDCXXSHARED points to Python correctly, so we try patching the others (in the original _sysconfigdata.py, so you have to restore the file manually or reinstall Python if you did the previous step 😄 ):

$ export p=/Users/andrei/.pyenv/versions/2.7.6
$ sed -i -e "s~-bundle_loader python.exe~-bundle_loader ${p}/bin/python2.7~g" \ 
  "$p/lib/python2.7/_sysconfigdata.py"

Or more aggressively, if you want to fix all python.exe cases in the file:

$ sed -i -e "s~python.exe~${p}/bin/python2.7~g" "$p/lib/python2.7/_sysconfigdata.py"

Now try installing:

$ pip install --no-cache lxml
Collecting lxml
  Downloading lxml-3.7.3.tar.gz (3.8MB)
    100% |████████████████████████████████| 3.8MB 49.0MB/s
Installing collected packages: lxml
  Running setup.py install for lxml ... done
Successfully installed lxml-3.7.3

Done!

thank you ,it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests