使用Anaconda Navigator时的Jupyter Notebook 404s

时间:2018-01-30 21:23:30

标签: python anaconda jupyter-notebook

抱歉,这里有点初学者问题。我下载了Jupyter笔记本附带的Anaconda库以及其他一些希望学习Python的程序。每次我尝试打开Jupyter Notebook时,它会指示我localhost:8888/tree的网页并给我以下错误:

  

404:Not Found error网页。

编辑:使用终端安装pip后,收到以下错误消息:

Exception:
Traceback (most recent call last):
  File "C:\Users\Y510P\Documents\Anaconda\lib\shutil.py", line 387, in _rmtree_u
nsafe
    os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\Y510P\\AppData\\Loca
l\\Temp\\pip-0tanc911-uninstall\\users\\y510p\\documents\\anaconda\\lib\\site-pa
ckages\\zmq\\backend\\cython\\constants.cp36-win_amd64.pyd'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\basecommand.py",
 line 215, in main
    status = self.run(options, args)
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\commands\install
.py", line 342, in run
    prefix=options.prefix_path,
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\req\req_set.py",
 line 795, in install
    requirement.commit_uninstall()
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\req\req_install.
py", line 767, in commit_uninstall
    self.uninstalled.commit()
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\req\req_uninstal
l.py", line 142, in commit
    rmtree(self.save_dir)
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\_vendor\retrying
.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\_vendor\retrying
.py", line 212, in call
    raise attempt.get()
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\_vendor\retrying
.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\six.py", line 693, i
n reraise
    raise value
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\_vendor\retrying
.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\utils\__init__.p
y", line 102, in rmtree
    onerror=rmtree_errorhandler)
  File "C:\Users\Y510P\Documents\Anaconda\lib\shutil.py", line 494, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\Users\Y510P\Documents\Anaconda\lib\shutil.py", line 384, in _rmtree_u
nsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Users\Y510P\Documents\Anaconda\lib\shutil.py", line 384, in _rmtree_u
nsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\Users\Y510P\Documents\Anaconda\lib\shutil.py", line 384, in _rmtree_u
nsafe
    _rmtree_unsafe(fullname, onerror)
  [Previous line repeated 5 more times]
  File "C:\Users\Y510P\Documents\Anaconda\lib\shutil.py", line 389, in _rmtree_u
nsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:\Users\Y510P\Documents\Anaconda\lib\site-packages\pip\utils\__init__.p
y", line 114, in rmtree_errorhandler
    func(path)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\Y510P\\AppData\\Loca
l\\Temp\\pip-0tanc911-uninstall\\users\\y510p\\documents\\anaconda\\lib\\site-pa
ckages\\zmq\\backend\\cython\\constants.cp36-win_amd64.pyd'

2 个答案:

答案 0 :(得分:0)

你要去的网页是什么。如果你正在使用Windows。转到cmd提示符。输入jupyter notebook。如果你在mac os x中。转到终端并键入jupyter notebook。 LMK,如果它不起作用。一旦你触发jupyter笔记本,这也是链接。 :

http://localhost:8888/tree

LMK知道

答案 1 :(得分:0)

您的错误消息提供:

  

首次连接时,将此URL复制/粘贴到浏览器中,使用令牌登录:       http://localhost:8891/?token=dcf34cac4a27f8b92397fcec424b228b308a4588f0473fd6

首先在浏览器中尝试,然后查看错误是否仍然存在。