【问题标题】:Error while installing notebook using pip使用 pip 安装笔记本时出错
【发布时间】: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/

如果你想要herepip 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


    【解决方案1】:

    您需要 Python 标头:

    sudo apt-get install python-dev
    

    您的安装过程尝试使用 gcc 编译扩展,但您似乎缺少必要的礼仪。

    【讨论】:

    • 不错。希望它能帮助下一个人搜索这个。
    猜你喜欢
    • 2021-04-15
    • 1970-01-01
    • 2015-10-08
    • 2021-01-23
    • 1970-01-01
    • 2015-08-08
    • 2019-06-14
    • 2017-12-22
    相关资源
    最近更新 更多