Skip to content Skip to sidebar Skip to footer

Python - Pip Install Pyublas : Could Not Build The Egg

I'm having trouble installing PyUblas on Ubuntu 14.04, via pip. I am using Python 2.7.6. Here goes the log : Traceback (most recent call last): File 'setup.py', line 248, in <

Solution 1:

I've run into this problem intermittently. Here's a (totally hacky) fix that's worked for me. First, download the PyUblas source:

pip install pyublas -d .
tar xvfz PyUblas-2013.1.tar.gz
cd PyUblas-2013.1/

Then edit aksetup_helper.py and comment out the lines that cause it to use its own custom version of distribute:

# dealings with ez_setup ------------------------------------------------------# COMMENT OUT THE NEXT TWO LINES# import distribute_setup# distribute_setup.use_setuptools()import setuptools
from setuptools import Extension

Then finally just do a manual install:

python setup.py install

Your mileage may vary. :-)

Edit: instead of manually editing the file, you can also just wipe out the distribute_setup module that it tries to import: echo "def use_setuptools(): pass" > distribute_setup.py. This might be easier if you're trying to script the process.

Post a Comment for "Python - Pip Install Pyublas : Could Not Build The Egg"