paylogic / pip-accel

pip-accel: Accelerator for pip, the Python package manager
https://pypi.python.org/pypi/pip-accel
MIT License
308 stars 35 forks source link

Failed to install some packages #76

Open icy opened 7 years ago

icy commented 7 years ago

I can install tensorflow without problem when using pip. However, pip-accel fails as below. This is on a Centos-based image and I already installed all system packages for the compilation process.

Please take a look. I can provide more details upon request.

+ pip-accel install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
2016-11-25 03:18:41 localhost pip_accel[21625] INFO Checking index(es) for new version (-U or --upgrade was given) ..
2016-11-25 03:18:41 localhost pip_accel[21625] INFO Downloading missing distribution(s) ..
2016-11-25 03:18:41 localhost pip_accel[21625] INFO Executing command: pip install --download=/var/cache/pip-accel/sources --find-links=file:///var/cache/pip-accel/sources --no-clean --build-directory=/tmp/pip-accel-build-dir-Pei2sA --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
2016-11-25 03:18:41 localhost pip.req.req_set[21625] INFO Collecting tensorflow==0.9.0 from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
2016-11-25 03:18:41 localhost pip._vendor.requests.packages.urllib3.connectionpool[21625] INFO Starting new HTTPS connection (1): storage.googleapis.com
2016-11-25 03:18:41 localhost pip.download[21625] INFO Downloading https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl (27.6MB)
2016-11-25 03:18:46 localhost pip.download[21625] INFO Saved /var/cache/pip-accel/sources/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
2016-11-25 03:18:46 localhost pip._vendor.requests.packages.urllib3.connectionpool[21625] INFO Starting new HTTPS connection (1): pypi.python.org
2016-11-25 03:18:46 localhost pip.req.req_set[21625] INFO Requirement already up-to-date: six>=1.10.0 in /usr/local/lib/python2.7/site-packages (from tensorflow==0.9.0)
2016-11-25 03:18:46 localhost pip.req.req_set[21625] INFO Collecting protobuf==3.0.0b2 (from tensorflow==0.9.0)
2016-11-25 03:18:46 localhost pip.download[21625] INFO Downloading protobuf-3.0.0b2-py2.py3-none-any.whl (326kB)
2016-11-25 03:18:46 localhost pip.download[21625] INFO Saved /var/cache/pip-accel/sources/protobuf-3.0.0b2-py2.py3-none-any.whl
2016-11-25 03:18:46 localhost pip.req.req_set[21625] INFO Collecting wheel (from tensorflow==0.9.0)
2016-11-25 03:18:46 localhost pip.download[21625] INFO Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
2016-11-25 03:18:46 localhost pip.download[21625] INFO Saved /var/cache/pip-accel/sources/wheel-0.29.0-py2.py3-none-any.whl
2016-11-25 03:18:46 localhost pip.req.req_set[21625] INFO Collecting numpy>=1.8.2 (from tensorflow==0.9.0)
2016-11-25 03:18:46 localhost pip.download[21625] INFO Downloading numpy-1.11.2.tar.gz (4.2MB)
2016-11-25 03:18:48 localhost pip.download[21625] INFO Saved /var/cache/pip-accel/sources/numpy-1.11.2.tar.gz
2016-11-25 03:18:48 localhost pip.req.req_set[21625] INFO Collecting setuptools (from protobuf==3.0.0b2->tensorflow==0.9.0)
2016-11-25 03:18:49 localhost pip.download[21625] INFO Downloading setuptools-28.8.0-py2.py3-none-any.whl (472kB)
2016-11-25 03:18:49 localhost pip.download[21625] INFO Saved /var/cache/pip-accel/sources/setuptools-28.8.0-py2.py3-none-any.whl
2016-11-25 03:18:49 localhost pip.commands.install[21625] INFO Successfully downloaded tensorflow protobuf wheel numpy setuptools
2016-11-25 03:18:49 localhost pip_accel[21625] INFO Finished downloading distribution(s) in 8.35 seconds.
2016-11-25 03:18:49 localhost pip_accel[21625] INFO Installing from binary and wheel distributions ..
2016-11-25 03:18:49 localhost pip_accel[21625] INFO Installing numpy (1.11.2) binary distribution using pip-accel ..
2016-11-25 03:18:49 localhost pip_accel.req[21625] INFO Found existing installation: numpy 1.10.4
2016-11-25 03:18:49 localhost pip.req.req_uninstall[21625] INFO Uninstalling numpy-1.10.4:
2016-11-25 03:18:50 localhost pip.req.req_uninstall[21625] INFO Successfully uninstalled numpy-1.10.4
2016-11-25 03:18:50 localhost pip_accel.caches.s3[21625] INFO Checking if distribution archive is available in S3 bucket: pip-accel/v7/numpy:1.11.2:CPython-2.7.tar.gz
2016-11-25 03:18:50 localhost pip_accel.bdist[21625] INFO Building numpy (1.11.2) binary distribution ..
2016-11-25 03:18:50 localhost pip_accel.bdist[21625] WARNING Build of numpy (1.11.2) failed, falling back to alternative method ..
2016-11-25 03:18:50 localhost pip_accel.bdist[21625] INFO Building numpy (1.11.2) binary distribution ..
2016-11-25 03:18:50 localhost pip_accel.bdist[21625] WARNING Build of numpy (1.11.2) failed, checking for missing dependencies ..
2016-11-25 03:18:50 localhost pip_accel.deps[21625] INFO Checking for known dependencies of numpy ..
2016-11-25 03:18:50 localhost pip_accel.deps[21625] INFO No known dependencies... Maybe you have a suggestion?
2016-11-25 03:18:50 localhost pip.req.req_uninstall[21625] INFO Rolling back uninstall of numpy
2016-11-25 03:18:51 localhost pip_accel.cli[21625] ERROR Caught unhandled exception!
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/pip_accel/cli.py", line 57, in main
    accelerator.install_from_arguments(arguments)
  File "/usr/local/lib/python2.7/site-packages/pip_accel/__init__.py", line 246, in install_from_arguments
    return self.install_requirements(requirements, **kw)
  File "/usr/local/lib/python2.7/site-packages/pip_accel/__init__.py", line 584, in install_requirements
    self.bdists.install_binary_dist(binary_distribution, **kw)
  File "/usr/local/lib/python2.7/site-packages/pip_accel/bdist.py", line 437, in install_binary_dist
    for member, from_handle in members:
  File "/usr/local/lib/python2.7/site-packages/pip_accel/bdist.py", line 87, in get_binary_dist
    raw_file = self.build_binary_dist(requirement)
  File "/usr/local/lib/python2.7/site-packages/pip_accel/bdist.py", line 217, in build_binary_dist
    return self.build_binary_dist_helper(requirement, ['bdist', '--formats=gztar'])
  File "/usr/local/lib/python2.7/site-packages/pip_accel/bdist.py", line 282, in build_binary_dist_helper
    name=requirement.name, version=requirement.version)
BuildFailed: Failed to build numpy (1.11.2) binary distribution!

Please check the build output because it will probably provide a hint about what went wrong.

Build output:

Running from numpy source directory.
`setup.py bdist` is not supported
Add `--force` to your command to use it anyway if you must (unsupported).