【问题标题】:Install Jupyter on Ubuntu在 Ubuntu 上安装 Jupyter
【发布时间】:2017-08-08 13:41:43
【问题描述】:

我正在尝试将 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

有什么办法解决这个问题?

【问题讨论】:

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


    【解决方案1】:

    在 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

    【讨论】:

    【解决方案2】:
    sudo apt-get update
    
    pip3 install jupyter
    

    【讨论】:

      猜你喜欢
      • 2018-09-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-02
      • 2018-08-14
      • 1970-01-01
      相关资源
      最近更新 更多