Win10系统,安装了在清华镜像安装了anaconda3。之前安装了tensorflow环境,
但是由于安装之后,一部分python包无法正常import,所以就在anaconda的界面
将tensorflow环境remove了,在remove之后,我就发现anaconda无法正常打开了。
应该是不小心删除了一些文件,就算重装anaconda也无法正常启动。
报错如下:
An unexpected error occur on navigator strat-up
psutil.AccessDefined(pid=3720)
Traceback (most recent call last):
File "C:\Users\33574\Anaconda3\lib\site-packages\psutil_pswindows.py", line 620, in wrapper
return fun(self, *args, **kwargs)
File "C:\Users\33574\Anaconda3\lib\site-packages\psutil_pswindows.py", line 690, in cmdline
ret = cext.proc_cmdline(self.pid)
PermissionError: [WinError 5] 拒绝访问。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\33574\Anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 75, in exception_handler
return_value = func(*args, **kwargs)
File "C:\Users\33574\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 108, in start_app
if misc.load_pid() is None: # A stale lock might be around
File "C:\Users\33574\Anaconda3\lib\site-packages\anaconda_navigator\utils\misc.py", line 384, in load_pid
cmds = process.cmdline()
File "C:\Users\33574\Anaconda3\lib\site-packages\psutil__init__.py", line 701, in cmdline
return self._proc.cmdline()
File "C:\Users\33574\Anaconda3\lib\site-packages\psutil_pswindows.py", line 623, in wrapper
raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=3720)
搞了一天了,网上的一些论坛也找过,没有找到类似的错误,毕竟像我这么手残删除环境的人也比较少。最近急用anaconda,希望各路大佬帮帮忙,非常感谢~
1)使用管理员运行:conda prompt
2)执行命令 conda update anaconda-navigator
3)还是不行就试试命令:anaconda-navigator --reset
把anaconda删除,然后重新安装的时候,换个位置试试,不然就需要重装系统来把系统环境清理干净
我重装了一遍,这次能打开了,但是jupyter无法正常使用,提示错误如下:
The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.
具体表现是导入包,输入语句import pandas as pd, 运行时报上述错误,正常情况下应该是import 和 as字体变粗,但在我这里无反应。
在spyder下是没有类似问题的。
望解答
解决了,命令行输入
conda install mkl numpy scipy scikit-learn numexpr
即可
我在Windows上装了好几个版本的anaconda,都不能用,为什么。而且没有界面,只有一个prompt,还不能用,提醒什么active.bat不是内部命令