ubuntu 14.04, Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='

转自:https://blog.csdn.net/w5688414/article/details/81300330?utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-OPENSEARCH-1.control

我在安装jupyter notebook的时候遇见了下面的错误

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

只需要使用;

sudo apt-get install libssl-dev libffi-dev python-dev build-essential libxml2-dev libxslt1-dev
sudo pip install jupyter notebook

参考文献

[1].Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-f8m_zq/statsmod. 

https://blog.csdn.net/helinbin/article/details/79961273

posted @ 2021-01-26 23:33  楚千羽  阅读(1653)  评论(0编辑  收藏  举报