anaconda navigator突然停止工作

时间:2018-03-26 12:47:05

标签: python python-3.x pip anaconda conda

突然,我的anaconda-navigator停止工作了!我试着通过在终端输入来更新它:

conda update conda
conda update anaconda-navigator 
anaconda-navigator

但没有发生任何事情。

然后,我尝试安装以下软件包:

pip install chardet

conda install launcher 

我还尝试删除以下文件:

rm -rf config.yaml

rm -Rf ~/.continuum ~/.anaconda

但什么都没发生!

我仍然收到以下错误:

 Traceback (most recent call last):
  File "/Applications/anaconda/bin/anaconda-navigator", line 11, in <module>
    sys.exit(main())
  File "/Applications/anaconda/lib/python3.5/site-packages/anaconda_navigator/app/main.py", line 129, in main
    from anaconda_navigator.app.start import start_app
  File "/Applications/anaconda/lib/python3.5/site-packages/anaconda_navigator/app/start.py", line 33, in <module>
    from anaconda_navigator.widgets.main_window import MainWindow
  File "/Applications/anaconda/lib/python3.5/site-packages/anaconda_navigator/widgets/main_window.py", line 32, in <module>
    from anaconda_navigator.api.anaconda_api import AnacondaAPI
  File "/Applications/anaconda/lib/python3.5/site-packages/anaconda_navigator/api/anaconda_api.py", line 33, in <module>
    from anaconda_navigator.api.client_api import ClientAPI
  File "/Applications/anaconda/lib/python3.5/site-packages/anaconda_navigator/api/client_api.py", line 24, in <module>
    from anaconda_navigator.api.conda_api import CondaAPI
  File "/Applications/anaconda/lib/python3.5/site-packages/anaconda_navigator/api/conda_api.py", line 33, in <module>
    from anaconda_navigator.utils.findpip import PIP_LIST_SCRIPT
  File "/Applications/anaconda/lib/python3.5/site-packages/anaconda_navigator/utils/findpip.py", line 22, in <module>
    import pip
  File "/Applications/anaconda/lib/python3.5/site-packages/pip/__init__.py", line 45, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/Applications/anaconda/lib/python3.5/site-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/Applications/anaconda/lib/python3.5/site-packages/pip/download.py", line 40, in <module>
    from pip._vendor import requests, six
  File "/Applications/anaconda/lib/python3.5/site-packages/pip/_vendor/requests/__init__.py", line 98, in <module>
    from . import packages
  File "/Applications/anaconda/lib/python3.5/site-packages/pip/_vendor/requests/packages.py", line 12, in <module>
    sys.modules['pip._vendor.requests.packages.' + mod] = sys.modules["pip._vendor." + mod]
KeyError: 'pip._vendor.chardet.constants'

这个错误是什么意思?我该怎么做才能解决这个问题?

提前致谢。

1 个答案:

答案 0 :(得分:1)

我已经解决了这个问题。对于遇到同样问题的人,按照我在上面的问题中提到的步骤后,尝试安装包:

pip install picage

因为据我所知,我得到的错误键是&#34; pip._vendor.chardet.constants&#34;是主包(picage)的子包。

然后你可以通过输入更新你的点子(注意单独这一步可能解决问题):

pip install --upgrade pip

此时,您可以输入以下内容来呼叫您的康茄舞:

anaconda-navigator

希望它会打开(它与我合作!)。