总结一下,留备用
question1:
File"setup.py", line 10, in <module>
from setuptools import setup
ImportError:No module named setuptools
make:*** [all] Error 1
solution1:
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
tar zxvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py build
python setup.py install
question2: File "setup.py", line 12, in<module>
from Cython.Distutils import build_ext
ImportError:No module named Cython.Distutils
make:*** [all] Error 1
solution2:
在Ubuntu14.04上,建议通过下面的方法安装,这是一种通用的方法,
手动下载下来就行了
wgethttps://bootstrap.pypa.io/get-pip.py --no-check-certificate
sudo python get-pip.py
sudo pip install cython
(add q2:
sudo python get-pip.py
error:
pip isconfigured with locations that require TLS/SSL, however the ssl module inPython is not available.
Collecting pip
Could not fetch URL https://pypi.python.org/simple/pip/: There was aproblem confirming the ssl certificate: Can't connect to HTTPS URL because theSSL module is not available. - skipping
Could not find a version that satisfies the requirement pip (fromversions: )
No matching distribution foundfor pip )
(solution add2:
Sudo reboot 重新输入就可以,应该是后台有程序占用,kill也可以。
)
question3:
File "setup.py", line14, in <module>
import numpy as np
ImportError: No module namednumpy
make: *** [all] Error 1
solution3:
sudo apt-get installpython-numpy
question4:
x86_64-linux-gnu-gcc: error:utils/bbox.c: No such file or directory
x86_64-linux-gnu-gcc: fatalerror: no input files
compilation terminated.
error: command 'x86_64-linux-gnu-gcc'failed with exit status 4
make: