"python setup.py egg_info" 的根本问题是什么?是否有通用解决方案?
What is the under lying issue for "python setup.py egg_info" and is there a universal fix?
尝试在 Ubuntu 16.04 LTS 上安装某些 Python 包时出现以下错误。我用谷歌搜索了修复程序,但 none 到目前为止都有效,而且所有修复程序似乎都非常特定于特定包。是否有通用修复程序,有人可以向我解释根本问题是什么吗?
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-9w8mswlw/tsne/
最近一次发生在我 运行 pip3 install tsne
输出结果如下
Collecting tsne
Using cached tsne-0.1.7.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-9w8mswlw/tsne/setup.py", line 18, in <module>
from Cython.Distutils import build_ext
ImportError: No module named 'Cython'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-9w8mswlw/tsne/
您需要安装 Cython language compiler. This is listed on the project page:
A python (cython) wrapper for Barnes-Hut-SNE aka fast-tsne.
和
Requirements
- numpy > =1.7.1
- scipy >= 0.12.0
- cython >= 0.19.1
- cblas or openblas. Tested version is v0.2.5 and v0.2.6 (not necessary for OSX).
您可以使用
安装 Cython
pip install Cython
虽然 tsne
项目确实 list Cython as a setuptools requirement,但遗憾的是他们没有将其列为 安装要求 ,并假设它已经预先安装。
我提交了 bug report with that project; in future point projects to 以便 pip install project_depending_on_cython
在安装时自动引入 Cython。
尝试在 Ubuntu 16.04 LTS 上安装某些 Python 包时出现以下错误。我用谷歌搜索了修复程序,但 none 到目前为止都有效,而且所有修复程序似乎都非常特定于特定包。是否有通用修复程序,有人可以向我解释根本问题是什么吗?
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-9w8mswlw/tsne/
最近一次发生在我 运行 pip3 install tsne
输出结果如下
Collecting tsne
Using cached tsne-0.1.7.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-9w8mswlw/tsne/setup.py", line 18, in <module>
from Cython.Distutils import build_ext
ImportError: No module named 'Cython'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-9w8mswlw/tsne/
您需要安装 Cython language compiler. This is listed on the project page:
A python (cython) wrapper for Barnes-Hut-SNE aka fast-tsne.
和
Requirements
- numpy > =1.7.1
- scipy >= 0.12.0
- cython >= 0.19.1
- cblas or openblas. Tested version is v0.2.5 and v0.2.6 (not necessary for OSX).
您可以使用
安装 Cythonpip install Cython
虽然 tsne
项目确实 list Cython as a setuptools requirement,但遗憾的是他们没有将其列为 安装要求 ,并假设它已经预先安装。
我提交了 bug report with that project; in future point projects to pip install project_depending_on_cython
在安装时自动引入 Cython。