命令 "python setup.py egg_info" 失败,错误代码为 /tmp/pip-install-EC5FHz/tornado/

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-EC5FHz/tornado/

我正在尝试从此处安装 ipywidgets [https://pypi.org/project/ipywidgets/] 但输出:

Cannot uninstall 'ipython'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

我在这里得到了一些解决方案 [ 我用过:

sudo pip install ipywidgets --ignore-installed -U ipython

不幸的是,我遇到了另一个问题:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-J1GUY8/tornado/

我试图从这里 [Import Error - Tornado requires an updated SSL module on ubuntu 14.04 修复它,但我不能

请帮助我或任何建议

提前致谢

跟我一起修好

第 1 步:我将 python 2.7.6 更新为 2.7.12

第 2 步:sudo pip install ipywidgets

第 3 步:从此处安装 jupter enter link description here

使用这些

sudo apt-get update
sudo apt-get -y install python-pip python-dev
sudo -H pip install --upgrade pip
sudo apt-get -y install ipython ipython-notebook
sudo -H pip install jupyter