【Anaconda】无法打开Anaconda Navigator的解决方法

环境

Windows10 64位 Anaconda3 2021.11

问题

Anaconda3安装完毕后,点击Anaconda Navigator图标,会出现几个命令行弹窗,但是无法出现Anaconda Navigator界面。

解决步骤

  1. 进入开始菜单,选择Anaconda Prompt (Anaconda3),右键以管理员身份运行。
  2. 输入命令 conda update anaconda-navigator,通常命令执行完会报错:
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

https://repo.anaconda.com/pkgs/main/win-64

解决方法:

    进入C:Users你的用户名,用记事本等打开.condarc“文件,修改文件内容如下,注意是http不是https。
ssl_verify: true
show_channel_urls: true

channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/
  1. 然后再次执行命令 conda update anaconda-navigator,一般就可以正常更新了。
  2. 接下来执行命令anaconda-navigator --reset,重置Anaconda Navigator,可能会出现如下错误:
ImportError: cannot import name HTTPSHandler from six.moves.urllib.request (unknown location)

解决方法:

    执行命令conda update openssl,重新安装或者升级 ssl。 再次执行命令,如果还是报错,那么进行下面的操作。 打开目录C:Users你的用户名Anaconda3Libraryin,将下面四个文件,拷贝到目录C:Users你的用户名Anaconda3DLLs下面
libcrypto-1_1-x64.dll libcrypto-1_1-x64.pdb libssl-1_1-x64.dll libssl-1_1-x64.pdb
    通常就可以解决了。
  1. 执行命令conda update anaconda-client,更新anaconda客户端。
  2. 执行命令conda update -f anaconda-client。
  3. 按照上述步骤,应该就能够顺利打开Anaconda Navigator、jupyter notebook了。
经验分享 程序员 微信小程序 职场和发展