Python Anaconda 安装问题 - 无法创建 Anaconda 菜单

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/42182477/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 21:20:38  来源:igfitidea点击:

Issues with Anaconda install - Failed to create Anaconda menus

pythoninstallationanacondafailed-installation

提问by crazyfrog

I had Anaconda version 3.5 installed on my machine but I decided to uninstall it (via the control panel) and to download version 2.7 instead. I am using Windows 7.

我的机器上安装了 Anaconda 3.5 版,但我决定卸载它(通过控制面板)并下载 2.7 版。我正在使用 Windows 7。

However, I have an error message towards the end of the installation where I receive a pop up window saying: Failed to create Anaconda menusand then another one saying Failed to add Anaconda to the system PATH.

但是,我在安装结束时收到一条错误消息,我收到一个弹出窗口说:Failed to create Anaconda menus然后另一个说Failed to add Anaconda to the system PATH.

When I click ignore on these pop ups the installation is finished but I do not even see Anaconda in my start menu.

当我在这些弹出窗口上单击忽略时,安装已完成,但我什至在开始菜单中都看不到 Anaconda。

I used different installers (4.2.0 and 4.1.1) but it still not working.

我使用了不同的安装程序(4.2.0 和 4.1.1),但它仍然无法正常工作。

I tried to install it for all users (as I read on the Internet) but it still did not work. The error message was different (see link below) followed by the pop up Failed to create Anaconda menus.

我尝试为所有用户安装它(正如我在 Internet 上阅读的那样),但它仍然无法正常工作。错误消息是不同的(见下面的链接),然后是弹出Failed to create Anaconda menus

https://cloud.githubusercontent.com/assets/24353213/20858712/e4438f60-b94b-11e6-806b-f01436aac306.PNG

https://cloud.githubusercontent.com/assets/24353213/20858712/e4438f60-b94b-11e6-806b-f01436aac306.PNG

Can you please help as I am stuck and cannot use it at all?

你能帮忙吗,因为我被卡住了,根本无法使用它?

回答by Paul Williams

2.5 years later, I had the same problem installing v2019.07, but the version actually doesn't matter. Anaconda has had this bug in the installer for a long time.

2.5年后,我在安装v2019.07时遇到了同样的问题,但实际上版本无关紧要。Anaconda 的安装程序中存在此错误已有很长时间了。

  • 2019.07 successfully installed on one of my dev boxes
  • 2019.07 failed to create menus on a second dev box with a very similar environment. Both Anaconda and Miniconda failed. I tried everything in this thread, and then some.
  • 2019.07 成功安装在我的一个开发箱上
  • 2019.07 无法在具有非常相似环境的第二个开发框上创建菜单。Anaconda 和 Miniconda 都失败了。我尝试了这个线程中的所有内容,然后尝试了一些。

Finally I went to the download archiveand grabbed 2019.03, which installed with no issues. This fixed it for me, your mileage may vary.

最后我去了下载存档并抓取了 2019.03,安装没有问题。这为我修好了,你的里程可能会有所不同。

回答by uniquegino

Could you try choosing run as administrator before clicking Anaconda 3 installation? That fixed mine.

您可以在单击 Anaconda 3 安装之前尝试选择以管理员身份运行吗?那个固定的我的。

回答by prasad sardesai

I was also facing the same issue while installing Anaconda 3.5, please follow the steps below before you start installation :

我在安装 Anaconda 3.5 时也遇到了同样的问题,请在开始安装之前按照以下步骤操作:

  1. Delete old Python versions from your PC/Laptop
  2. Clear path variables which have created on your PC
  3. Turn off your anti virus program before you start installation
  4. If you have JDK installed on your machine, uninstall it, also delete JAVA path created in variable
  1. 从您的 PC/笔记本电脑中删除旧的 Python 版本
  2. 清除在您的 PC 上创建的路径变量
  3. 在开始安装之前关闭防病毒程序
  4. 如果你的机器上安装了JDK,卸载它,同时删除变量中创建的JAVA路径

回答by Jo?o César Fróes

I was able to install from Windows Safe Mode. There were no errors during the installation.

我能够从 Windows 安全模式安装。安装过程中没有任何错误。

回答by SHALINI GUPTA

  1. Turn off the antivirus installed in your computer before installing the anaconda setup.
  2. During installation select its access to all users which requires admin permission then the default path automatically changes into C/Program Data/Anaconda 3. Then it won't show any errors :)
  1. 在安装 anaconda 设置之前,请关闭计算机中安装的防病毒软件。
  2. 在安装过程中,选择需要管理员权限的所有用户的访问权限,然后默认路径自动更改为 C/Program Data/Anaconda 3。然后它不会显示任何错误:)

回答by Pardesi_Desi

I almost spent two days running in circles trying all the solutions I could find on the Internet, but here is what worked for me.

我几乎花了两天的时间来尝试我可以在 Internet 上找到的所有解决方案,但这是对我有用的方法。

So, CondaHTTPErroraka SSL module is not availableerror is caused by the missing/misplacement of libcryptofile in anaconda3/DLLs folder:

因此,CondaHTTPError又名SSL module is not available错误是由anaconda3/DLLs 文件夹中libcrypto文件丢失/错位引起的:

Tl;dr:

Tl;博士

From anaconda3\Library\bin copy below files and paste them in anaconda3/DLLs:

从 anaconda3\Library\bin 复制以下文件并将它们粘贴到 anaconda3/DLL 中:

-   libcrypto-1_1-x64.dll
-   libssl-1_1-x64.dll 

Detailed answer:

详细回答

  1. Uninstallany Pythonversions you have (e.g. Python 3.7 or Python 3.8)

    go to Control Panel--> Program and Features--> Select Python--> uninstall

  2. Uninstallany Anacondaversions you might have (e.g. Anaconda or miniConda) For Anaconda:

    go to Control Panel--> Program and Features--> Select Anaconda-->uninstall

    For miniConda

    go to Control Panel--> Program and Features--> Select miniconda--> uninstall

  3. Deleteany leftover Environment variables

    go to Control Panel--> System--> Advanced System settings(on left side)--> in System Propertiesclick on Environment Variablesbutton--> in User Variableselect Pathand click the Editbutton--> deleteany path related to Anaconda, miniConda or Python.

    E.g.
    C:\Users\Bob \AppData\Local\Programs\Anaconda\...
    C:\Users\Bob \AppData\Local\Programs\miniconda\...
    

    b. If you don't see any paths related to Anaconda, miniConda or Python; you are good to go.

  4. Rebootyour machine
  5. Downloadthe latest version of Anaconda
  6. Runthe Installer; keep all the default settings
  7. Go toyour anaconda3/library/binfolder:

    E.g.C:\Users\Bob\AppData\Local\Continuum\anaconda3\Library\bin

  8. Copythese files:

    libcrypto-1_1-x64.dll

    libssl-1_1-x64.dll

  9. pastethese in anaconda3/DLLsfolder:

  10. Reopenthe Anaconda Prompt and testwith any command that requires an Internet connection. E.g. conda update condaOr with conda update --all
  1. 卸载您拥有的任何Python版本(例如 Python 3.7 或 Python 3.8)

    转到控制面板--> 程序和功能--> 选择 Python--> 卸载

  2. Anaconda卸载您可能拥有的任何Anaconda版本(例如 Anaconda 或 miniConda):

    转到控制面板-->程序和功能--> 选择Anaconda-->卸载

    对于 miniConda

    转到控制面板-->程序和功能--> 选择miniconda-->卸载

  3. 删除任何剩余的环境变量

    转到控制面板-->系统-->高级系统设置(左侧)--> 在系统属性中单击环境变量按钮--> 在用户变量中选择路径并单击编辑按钮-->删除任何相关的路径到 Anaconda、miniConda 或 Python。

    E.g.
    C:\Users\Bob \AppData\Local\Programs\Anaconda\...
    C:\Users\Bob \AppData\Local\Programs\miniconda\...
    

    湾 如果您没有看到任何与 Anaconda、miniConda 或 Python 相关的路径;你已准备好出发。

  4. 重启你的机器
  5. 下载最新版本的Anaconda
  6. 运行安装程序; 保留所有默认设置
  7. 转到您的anaconda3/library/bin文件夹

    例如C:\Users\Bob\AppData\Local\Continuum\anaconda3\Library\bin

  8. 复制这些文件

    libcrypto-1_1-x64.dll

    libssl-1_1-x64.dll

  9. 这些粘贴anaconda3/DLLs文件夹中

  10. 重新打开蟒蛇提示和测试与需要连接到Internet的任何命令。例如 conda update conda或与 conda update --all

回答by simo.3792

Tried this as well, using 5.0.0 and 4.4.0 installer, tried as local user, admin user, install as administrator, clicked the "add to path", but none of these worked. Every time I got the same "failed to install menus"

也尝试过,使用 5.0.0 和 4.4.0 安装程序,以本地用户、管理员用户身份尝试,以管理员身份安装,单击“添加到路径”,但这些都不起作用。每次我都遇到同样的“无法安装菜单”

Then I added the Anaconda target directory C:\ProgramData\Anaconda3to the end of my Path, re-ran the installer (5.0.0) and it finally worked.

然后我将 Anaconda 目标目录添加C:\ProgramData\Anaconda3到我的路径末尾,重新运行安装程序(5.0.0),它终于工作了。

回答by Vivek Santoki

This is complete process. With this step you cat install your Anaconda of any version(not need to download miniconda).

这是一个完整的过程。通过这一步,您可以安装任何版本的 Anaconda(无需下载 miniconda)。

If you are window user or any OS you are using first download Anacond.

如果您是窗口用户或任何您使用的操作系统,请首先下载 Anacond。

first you need to delete all language(java,python etc) variable path which is set via environment variable.

首先,您需要删除通过环境变量设置的所有语言(java、python 等)变量路径。

If you are window user then need to off window defender.

如果您是窗口用户,则需要关闭窗口防御者。

After that uninstall all antivirus software(If you using antivirus software you will not get menu ).

之后卸载所有防病毒软件(如果您使用防病毒软件,您将无法获得菜单)。

And install Anacoda you can install perfectly.100% working

并安装 Anacoda,您可以完美安装。 100% 工作