蟒蛇导航器突然停止工作 [英] anaconda navigator suddenly stops working
问题描述
突然,我的anaconda-navigator停止工作了!我试图通过在终端中输入来更新它:
Suddenly, my anaconda-navigator stops working! I tried to update it by typing in the terminal:
conda update conda
conda update anaconda-navigator
anaconda-navigator
但什么也没发生.
然后,我尝试安装以下软件包:
Then, I tried to install the following packages:
pip install chardet
和
conda install launcher
我还试图删除以下文件:
I also tried to delete the following files:
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'
此错误是什么意思?我该怎么解决这个问题?
What does this error mean? and what should I do to solve the problem?
提前谢谢.
推荐答案
我已经解决了这个问题.对于面临相同问题的任何人,请按照我在上面的问题中前面提到的步骤进行操作,然后尝试安装该软件包:
I have solved this problem. To whomever is facing the same problem, after following the steps that I mentioned earlier in my question above, try to install the package:
pip install picage
据我所知,我得到的"pip._vendor.chardet.constants"错误密钥是主程序包的子程序包(图片).
since, as far as I understand, the error key that I get "pip._vendor.chardet.constants" is a subpackage from the main package (picage).
然后您可以通过键入来更新您的点(请注意,仅此步骤可能会解决问题):
and then you can update your pip by typing (note that this step alone might solve the problem):
pip install --upgrade pip
此时,您可以通过键入以下内容来调用conda:
At this point you can call your conda by typing:
anaconda-navigator
,希望它会打开(它与我合作!).
and hopefully it will open (it worked with me!).
这篇关于蟒蛇导航器突然停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!