在Windows 10 Home(64位)上安装后无法使用Anaconda分发-缺少python36.dll

时间:2018-10-23 15:24:46

标签: python installation anaconda

我正在尝试通过笔记本电脑(Windows 10 Home,64位,Intel i5 6200U)上的Anaconda发行版安装Python。我从https://www.anaconda.com/download/(3.7版)下载了Anaconda3-5.3.0-Windows-x86_64.exe文件,并遵循操作方法文档中的所有说明进行操作,并遵循所有默认设置(http://docs.anaconda.com/anaconda/install/windows/) 。

例如,当我尝试打开Jupyter笔记本时,它显示内核错误。通过单击错误消息,我收到此消息:

Traceback (most recent call last):
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\tornado\web.py", line 1592, in _execute
    result = yield result
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\tornado\gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\notebook\services\sessions\handlers.py", line 73, in post
    type=mtype))
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\tornado\gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 79, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\tornado\gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 92, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\tornado\gen.py", line 326, in wrapper
    yielded = next(result)
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 160, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\jupyter_client\manager.py", line 259, in start_kernel
    **kw)
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\jupyter_client\manager.py", line 204, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "C:\Users\Constantin\Anaconda3\lib\site-packages\jupyter_client\launcher.py", line 128, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "C:\Users\Constantin\Anaconda3\lib\subprocess.py", line 756, in __init__
    restore_signals, start_new_session)
  File "C:\Users\Constantin\Anaconda3\lib\subprocess.py", line 1155, in _execute_child
    startupinfo)
OSError: [WinError 87] The parameter is incorrect

更新:在@Surya Radhakrishnan建议之后,我在conda控制台中输入

conda install ipykernel

但是现在,我收到此错误消息:

Now I get this error message:

我多次重新安装了Anaconda,并尝试了不同版本,但没有帮助。 Jupyther Notebook控制台显示以下内容:

[I 03:16:46.306 NotebookApp] JupyterLab beta preview extension loaded from C:\Users\Constantin\Anaconda3\lib\site-packages\jupyterlab
[I 03:16:46.306 NotebookApp] JupyterLab application directory is C:\Users\Constantin\Anaconda3\share\jupyter\lab
[I 03:16:46.462 NotebookApp] Serving notebooks from local directory: C:\Users\Constantin
[I 03:16:46.462 NotebookApp] 0 active kernels
[I 03:16:46.462 NotebookApp] The Jupyter Notebook is running at:
[I 03:16:46.462 NotebookApp] http://localhost:8888/?token=cddf0b143d19105a2aae867580238ea9b4b9205530edc569
[I 03:16:46.462 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 03:16:46.462 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=cddf0b143d19105a2aae867580238ea9b4b9205530edc569&token=cddf0b143d19105a2aae867580238ea9b4b9205530edc569
[I 03:16:46.681 NotebookApp] Accepting one-time-token-authenticated connection from ::1

1 个答案:

答案 0 :(得分:1)

通常,当我们尝试访问未安装ipykernel的jupyter笔记本时,会出现此错误。如果没有,请检查并安装ipykernel。

conda install ipykernel