ubuntu 14.04, Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='
阿新 • • 發佈:2019-02-16
我在安裝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.