Python Anaconda Navigator 无法启动(Windows 10)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46335789/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Anaconda Navigator won't launch (windows 10)
提问by Hammad Hashmi
Anaconda navigator won't launch, I tried reinstalling it, that did not work either. anancondas' command prompt shows an error message. I've tried googling the answer, I guess I'm bad at it. this is what I see after opening anaconda prompt
Anaconda navigator 无法启动,我尝试重新安装它,但也没有用。anancondas 的命令提示符显示错误消息。我试过谷歌搜索答案,我想我不擅长。 这是我打开 anaconda 提示符后看到的
p.s. I use spyder on it
ps我在上面使用spyder
回答by Alex G
You need to run the cmd prompt from the Scripts directory of Anacondawhere ever you have the Anaconda parent folder installed. I happen to have in the root directory of the C drive on my Windows machine. If you are not familiar there are two ways to do that:
您需要从安装了 Anaconda 父文件夹的 Anaconda的Scripts 目录运行 cmd 提示符。我碰巧在我的 Windows 机器上的 C 驱动器的根目录中。如果您不熟悉,有两种方法可以做到:
A)Use the key combination Win-key + R
then type cmd
and hit return to launch the terminal window and then type: cd C:\Anaconda\Scripts
(or whatever directory path yours is).
B)Navigate using windows explorer to that Scriptsdirectory then type cmd
in the address bar of that window and hit return (that will launch the terminal already set to that directory).
A)使用组合键,Win-key + R
然后键入cmd
并按回车键启动终端窗口,然后键入:(cd C:\Anaconda\Scripts
或您的任何目录路径)。
B)使用 windows 资源管理器导航到该Scripts目录,然后cmd
在该窗口的地址栏中键入并按回车键(这将启动已设置为该目录的终端)。
Next type the follow commands waiting in between for each to complete:
接下来键入以下命令,等待每个命令完成:
activate root
conda update -n root conda
conda update --all
When complete type the following and Navigatorhopefully should launch:
完成后键入以下内容,导航器应该会启动:
anaconda-navigator
回答by Vishal Rangras
You need to update Anaconda using:
您需要使用以下方法更新 Anaconda:
conda update
and
和
conda update anaconda-navigator
Try these commands on anaconda prompt and then try to launch navigator from the prompt itself using following command:
在 anaconda 提示符下尝试这些命令,然后尝试使用以下命令从提示符本身启动导航器:
anaconda-navigator
If still the problem doesn't get solved, share the anaconda prompt logs here if they have any errors.
如果问题仍未解决,请在此处共享 anaconda 提示日志(如果有任何错误)。
回答by Regi Mathew
I am not sure why but the command below worked for me.
我不知道为什么,但下面的命令对我有用。
pip install pyqt5
Of course I updated Anaconda and Navigator before running this command.
当然,我在运行此命令之前更新了 Anaconda 和 Navigator。
回答by Janny Loco
I had the same issue, and solved it by the following commands:
我遇到了同样的问题,并通过以下命令解决了它:
conda update conda
conda update anaconda-navigator
anaconda-navigator --reset
anaconda-navigator
回答by n33
I had the same problem which was mainly due to an update to PyQt5, the following code helped me.
我遇到了同样的问题,这主要是由于 PyQt5 的更新,以下代码帮助了我。
Run cmd.exe as admin:
以管理员身份运行 cmd.exe:
conda update conda
conda update anaconda-navigator
reinstall PyQt5:
重新安装 PyQt5:
pip uninstall PyQt5
pip install PyQt5
pip install pyqtwebengine
回答by Chetan Ambi
I was also facing same problem. Running below command from conda command prompt solved my problem
我也面临同样的问题。从 conda 命令提示符运行以下命令解决了我的问题
pip install pyqt5
回答by Sanjana Nair
Faced the same problem. 'conda update'
does not work; It gives the error : "CondaValueError: no package names supplied"
面临同样的问题。'conda update'
不起作用;它给出了错误:"CondaValueError: no package names supplied"
On executing the following commands, I was able to launch the Anaconda navigator:
在执行以下命令时,我能够启动Anaconda navigator:
conda update -n base conda
conda update anaconda-navigator
conda update anaconda-navigator
回答by Bernard Esterhuyse
I struggled with this problem for a couple of hours (got the same error message you showed in your attachment). I knew the problem had to do with the path variable, specifically the PYTHONHOME variable.
我在这个问题上挣扎了几个小时(收到了您在附件中显示的相同错误消息)。我知道问题与路径变量有关,特别是 PYTHONHOME 变量。
I finally found I had set the PYTHONHOME path to the python.exe file (C:\Anaconda3\python.exe). It should be set to the Anaconda folder that contains the python.exe file (C:\Anaconda3).
我终于发现我已经将 PYTHONHOME 路径设置为 python.exe 文件(C:\Anaconda3\python.exe)。它应该设置为包含 python.exe 文件 (C:\Anaconda3) 的 Anaconda 文件夹。
After that I could run the Anaconda Navigator.
之后,我可以运行 Anaconda Navigator。
回答by Harish L
So none of the above answers worked for me.
所以以上答案都不适合我。
I performed the following steps in order to make it work for me : OS : Windows 10 Home 64 Bit
我执行了以下步骤以使其对我有用:操作系统:Windows 10 Home 64 Bit
Open Anaconda Prompt
打开 Anaconda 提示
conda remove anaconda-navigator
conda install anaconda-navigator
conda install -c anaconda pywin32
// Had to install since I got a module not found error
// with just the above two commands
conda install -c anaconda pywin32
// 必须安装,因为我遇到了一个模块未找到错误 // 仅使用上述两个命令
And it worked for me!!
它对我有用!!
回答by R_and_Python_noob
I tried the following @janny loco's answer first and then reset anaconda to get it to work.
我首先尝试了以下@janny loco 的答案,然后重置 anaconda 以使其正常工作。
Step 1:
第1步:
activate root
conda update -n root conda
conda update --all
Step 2:
第2步:
anaconda-navigator --reset
anaconda-navigator --reset
After running the update commands in step 1 and not seeing any success, I reset anaconda by running the command above based on what I found here.
在第 1 步中运行更新命令并没有看到任何成功后,我根据我在此处找到的内容通过运行上面的命令来重置 anaconda 。
I am not sure if it was the combination of updating conda and reseting the navigator or just one of the two. So, please try accordingly.
我不确定这是更新 conda 和重置导航器的组合还是两者之一。所以,请相应地尝试。