2017-08-08 139 views
0

我想將Ubuntu 14.04上的Jupiter安裝到我的主目錄中。在Ubuntu上安裝Jupyter

我有我自己的本地版本的Python 2.7和PIP,我希望它跑掉。我試着用

pip install jupyter 

,但是當它試圖安裝simplegeneric

Exception: 
Traceback (most recent call last): 
    File "https://stackoverflow.com/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main 
     status = self.run(options, args) 
    File "https://stackoverflow.com/users/dor/arqj/ahl/.local/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run 
     wb.build(autobuilding=True) 
    File "https://stackoverflow.com/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 "https://stackoverflow.com/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 "https://stackoverflow.com/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 "https://stackoverflow.com/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 "https://stackoverflow.com/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 "https://stackoverflow.com/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 "https://stackoverflow.com/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 "https://stackoverflow.com/users/dor/arqj/ahl/python/lib/python2.7/zipfile.py", line 770, in __init__ 
     self._RealGetContents() 
    File "https://stackoverflow.com/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 

任何方式來解決這個問題,我得到這個錯誤?

回答

0

在Ubuntu 14.04安裝Jupyter→16.10

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

+0

任何方式,而不使用sudo這樣做,我沒有如果不想嘗試HTTP使用sudo – Ahmed

+0

特權:// winlandiano.github.io/informatik/2017/06/13/Installing-Jupyter-on-ipd-server-without-sudo-authority –

+0

我仍然收到上面列出的同樣的錯誤 – Ahmed