0
点赞
收藏
分享

微信扫一扫

ubuntu 14.04, Command “/usr/bin/python -u -c ”import setuptools, tokenize;__file__=‘

萨科潘 2022-12-08 阅读 109


我在安装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. 


举报

相关推荐

0 条评论