在Ubuntu上安装Jupyter

时间:2017-08-08 13:41:43

标签: python python-2.7 ubuntu-14.04 jupyter-notebook jupyter

我正在尝试将Ubuntu 14.04上的Jupiter安装到我的主目录中。

我有自己的本地版python 2.7和pip,我希望它能够运行。我尝试使用

pip install jupyter 

但是在尝试安装simplegeneric

时出现此错误
Exception:
Traceback (most recent call last):
    File "/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
        status = self.run(options, args)
    File "/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run
        wb.build(autobuilding=True)
    File "/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/wheel.py", line 749, in build
        self.requirement_set.prepare_files(self.finder)
    File "/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
        ignore_dependencies=self.ignore_dependencies))
    File "/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 620, in _prepare_file
        session=self.session, hashes=hashes)
    File "/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/download.py", line 809, in unpack_url
        unpack_file_url(link, location, download_dir, hashes=hashes)
    File "/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/download.py", line 715, in unpack_file_url
        unpack_file(from_path, location, content_type, link)
    File "/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/utils/__init__.py", line 599, in unpack_file
        flatten=not filename.endswith('.whl')
    File "/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/utils/__init__.py", line 484, in unzip_file
        zip = zipfile.ZipFile(zipfp, allowZip64=True)
    File "/users/dor/arqj/ahl/python/lib/python2.7/zipfile.py", line 770, in __init__
        self._RealGetContents()
    File "/users/dor/arqj/ahl/python/lib/python2.7/zipfile.py", line 811, in _RealGetContents
        raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file

有什么方法可以解决这个问题吗?

2 个答案:

答案 0 :(得分:0)

在Ubuntu 14.04→16.10中安装Jupyter

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

for more information visit

答案 1 :(得分:0)

@Mock