我已经在我的Ubuntu 18 Mate LTS桌面上安装了Anaconda。以下是输出:
python --version
is
Python 3.6.5 :: Anaconda, Inc.
首先,当我尝试使用以下命令启动Anaconda Navigator时:
anaconda-navigator
应用程序在“加载应用程序”阶段卡住了。我最终不得不使用CTRL+C/CTRL+Z来强制关闭。 Anaconda Navigator从未启动。
在此之后,我尝试了以下操作:
conda update anaconda-navigator
并且
conda update conda
这些命令都不起作用。
我试图在网上寻找解决方案,在一个网站上,我被引导使用以下一组命令:
source ~/anaconda*/bin/activate root
anaconda-navigator
即使这样也不起作用。它显示了一条SSL验证失败的消息。消息如下:-
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/noarch/repodata.json.bz2> 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.
SSLError(MaxRetryError('HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/noarch/repodata.json.bz2 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))',),)
接着,我谷歌了这个问题,在其中一个网站上,开发者建议我使用
conda config --set ssl_verify False
我这样做了。然后之后,我没有看到错误信息(显然是因为关闭了ssl验证)。但是,我不断收到以下报告(无论使用什么conda命令),而不是任何错误消息。报告看起来像这样:
environment variables:
CIO_TEST=<not set>
CONDA_BACKUP_HOST=x86_64-conda_cos6-linux-gnu
CONDA_DEFAULT_ENV=base
CONDA_EXE=/home/upendra/anaconda3/bin/conda
CONDA_PREFIX=/home/upendra/anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=/home/upendra/anaconda3/bin/python
CONDA_ROOT=/home/upendra/anaconda3
CONDA_SHLVL=1
PATH=/home/upendra/anaconda3/bin:/home/upendra/anaconda3/bin:/usr/local/sbi
n:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/g
ames:/snap/bin
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
UBUNTU_MENUPROXY=<set>
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
ftp_proxy=<set>
http_proxy=<set>
https_proxy=<set>
active environment : base
active env location : /home/upendra/anaconda3
shell level : 1
user config file : /home/upendra/.condarc
populated config files : /home/upendra/.condarc
conda version : 4.5.9
conda-build version : 3.10.5
python version : 3.6.5.final.0
base environment : /home/upendra/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /home/upendra/anaconda3/pkgs
/home/upendra/.conda/pkgs
envs directories : /home/upendra/anaconda3/envs
/home/upendra/.conda/envs
platform : linux-64
user-agent : conda/4.5.9 requests/2.18.4 CPython/3.6.5 Linux/4.15.0-30-generic ubuntu/18.04 glibc/2.27
UID:GID : 1000:1000
netrc file : None
offline mode : False
有趣的是,我第一次安装并运行anaconda-navigator时,导航窗口确实被打开了。但自从那以后,每次关闭系统后再次启动anaconda-navigator窗口都无法打开。我也不确定这是因为网络连接问题还是anaconda安装/配置问题。
有什么建议吗?