在Ubuntu系统中安装Jupyter

时间:2017-05-29 12:26:15

标签: python ubuntu jupyter-notebook

我尝试使用以下命令安装Jupyter:pip install jupyter

我安装了Python 2.7版。在尝试安装jupyter时,我收到以下错误

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ZEAIQG/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-lAQhvB-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ZEAIQG/scandir/

有人可以帮我解决这个问题吗?谢谢!

1 个答案:

答案 0 :(得分:0)

尝试使用此命令安装必要的依赖

apt-get install build-essential python-dev