【发布时间】:2018-07-14 11:42:18
【问题描述】:
注意:我使用的是 linux(ubuntu,mint)
我正在尝试安装 jupyter。但是经过一番搜索,我意识到我在尝试安装 jupyter 时遇到的错误是由于 notebook 造成的。
这是我在尝试使用sudo pip install notebook 安装笔记本时遇到的错误。
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-EKmj0F/scandir/setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();
exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-OB5xPr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-EKmj0F/scandir/
如果你想要here 是pip install notebook 的整个输出。
提前感谢您的回答。
这是错误信息的相关部分:
_scandir.c:14:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
【问题讨论】:
标签: python linux installation pip jupyter-notebook