New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to create ( add ) Anaconda menus (to the system PATH) #732
Comments
There may be up to three things at play here:
I hope this helps you narrow it down. If you can isolate it, please let us know. |
ty for fast reply.
|
what locale is the system set to? Do you have any way of sharing the VM with us so we can study this more closely? Our main issue in studying this problem has been inability to reproduce it. |
sry fo long no-respond .This is exactly what i'm using right now: |
Well.... I have nothing to say. Now it works on my vm (2 d ago didnt, now does! ) I did nothing. |
It sounds like our race condition is still alive and well. I will try to investigate. Even when that part of the installer fails, you should be able to use the installed python, though. Open a prompt in the folder where you installed it, and run python from there. Does it work? If not, any error would be helpful to understand why the installer might be failing. If it works and you just want to run with it, you can manually modify PATH and install shortcuts. Let me know if the installed python works, and I'll point you to directions. |
Ty for your time,I appreciate You still trying to help. Sry for long no-respond sometimes. |
Well . Seems like i've found the solution. Unfortunately I can't test it now , cause I haven't access for all machines right now , but it works at local pc ( same as others) |
Hi Mike, thank you and sorry for that - sounds like incompetence to me |
I had the same problem. Without admin permission this error shows up
Here my install log log.txt |
Just to make SeppDeDepp's answer a bit more convenient...
Assuming <ANACONDA_HOME> = "C:\Anaconda3"
|
Did some research and found out it was because my path variable was too long. Windows apparently has a limit of 1024 for path length. so i cleared some variables and reinstalled and it seemed to work fine |
Same problem here. 'addpath' and 'mkdirs' worked well, but mkmenus, didn't. I'm also running in cmd as an administrator and the length of my path is shot: c:\Anaconda |
I have a new laptop with win 10 64 and have the exact same issue on first installation attempt. Any suggestions? |
Hi~ I have solved this problem. In my case, English is not my native language, so when I install windows 10 in my computer, I type my name as Korean. This cause the problem like this. Thus, I change my name into one as English, It works well. |
I've just had the same issue on a Windows 10 machine (Anaconda2-4.2.0-Windows-x86_64.exe). No special characters in my name or path, no blank spaces either, my user is admin on the machine, and UAC is turned off. Running The only way I could make it work, was running the installer as Administrator, and installing it for All Users. |
Had the same problem on Windows 8.1 Enterprise. |
So if this is such an easily fixed problem, why isn't the Windows installer fixed? Is there a repo for it? I'd be disappointed if there's not a PR already, but I'll create one if there isn't. |
@MarkusFK - I'm guessing you should be able to change line 172 in knownfolders.py to use path.decode('utf8') rather than whatever codec it's attempting to use. Why it's not designed to select the correct codec is beyond me. |
@TheBeege the code for this is menuinst. Specifically, https://github.com/ContinuumIO/menuinst/blob/master/menuinst/knownfolders.py#L168 It is trying to detect the right codec, but I might be totally wrong in how I do it. PRs welcome on menuinst. We have also reworked the installers for the coming Anaconda 4.3 release to disallow unicode paths when installing a Python2 distribution, and to warn people about these paths with Python 3. Accented characters unfortunately just break a lot of Python 2 software, and we can't fix the entire ecosystem. |
Hi @msarahan, I tried installing both the versions i.e 2.7 as well as 3.5 for 64 bit Windows OS. Got the following three issues in order as mentioned :-
|
Finally installed.
Thank you all! |
I tested several times more, My problem was just other pre-installed programs or their paths, I think. without a new account, without a vaccine turned off, without some kinds of modifying the length of path variable, installed. |
Had this problem with Miniconda (latest I think 4.3.0) and Anaconda 4.3.0 on Windows 8.1 (64 bit, default USA English). The failure happens near end of install of these apps, so do not try to install Anaconda, because it just takes longer to fail. Making your path short, installing as Admin, installing Visual Studio redist executables, and using 32 bit rather than 64 bit version does NOT help. The following does work:
Now, I am not sure if environment is totally fixed, because if you run the following it fails, but likely a different bug: So Anaconda developers, please fix this. |
I had a same problem at this line
I deleted user variable Path And I guess Miniconda don't have this issue. |
For win10 , Abort the installation when you see "Failed to create ( add ) Anaconda menus " Restart the installation by right clicking the installation file and 'Run as Admin'. |
OK, working in Win 10 on Dell XPS turning off the Win Defender and installing as Administrator for all users after uninstalling other versions of python worked. |
As for me, I got python 3.5 already and a lot of other developer tools on my dekstop pc. |
The fix for me was to adjust one of the two java path statements. When you look at it in Windows 10 GUI, all look the same but when you see it in text, the /bin entry is in quotes. Removing those quotes allowed it to complete without removing the java path statements. |
I am guessing that the installer like had a problem based on multiple visual c++ binaries being installed. I currently only have one and the install worked fine. Back when I had the problem, I had multiple visual c++ binaries installed. This is totally a guess to the root cause of the problem. But I do thing other settings help (e.g. keep path to Conda short, no spaces in the path, install as admin). |
@larssonbajra please open a new issue |
Hello all. I may have a handle on part of the problem. I'm hoping it sparks some ideas for others. We're installing without admin privileges--local user only--on a Win 7 Enterprise 64 bit machine. We first ran into the failure to create menus. I worked around it by opening a command prompt and running the commands below, following the lead of some of the previous posters. If you try this step, please note that I had to run them using python.exe, not pythonw.exe, and that I ran them from the installation directory:
That got us menu entries and a working Jupyter notebook. The next problem was when we tried to launch Spyder. It gave the same popup others have been getting about a missing Qt plugin: The first issue was that the path to spyder-script.py in the menu shortcut for Spyder was too long, and Windows truncated it at 260 characters. Here's what was in the shortcut's target. Notice there's no trailing close quote: I'm not sure whether Windows keeps the full path buried somewhere, but just in case I created copy of cwp.py called cwp2.py and modified it to expand the "@" symbol to a full path:
That let me shorten the target in the menu entry to this: Unfortunately, pythonw is still generating the error about the missing Qt plugin. The empty string in the popup suggests it's getting an incomplete search path, but I'm not sure where its path information comes from. |
I am having same problem, I think why this happen to me is because of I was deleted Anaconda3 folder instead of uninstalling it. So, when I am trying to reinstall it , It's saying failed to add menus. I have to clean the previous paths and other stuff. I don't know how to this please help me to overcome this. |
https://docs.anaconda.com/anaconda/user-guide/troubleshooting#windows-error-failed-to-create-anaconda-menus-or-failed-to-add-anaconda-to-the-system-path. Following this with All users did the trick for me |
Here is the solution I have found.
|
Thank you @piilupart88 I had an old Java path installation in my Path environment variable. I removed it, and it works !! |
After trying almost all suggestions in this thread (removing java entries from PATH, running the installer as normal user / admin, installing only for myself / everyone, installing Miniconda and running conda install anaconda, running the scripts after install, uninstalling and reinstalling a dozen times) - nothing worked. The menu items in start menu stubbornly remained missing, and the anaconda prompt gave the infamous activate.bat error. There was one suggestion that I could not try: temporarily disabling the anti-virus (Webroot SecureAnywhere), as it is a company machine (Surface Pro 4) and corporate policy doesn't allow even opening the Webroot interface, let alone disable it temporarily. Upon a hunch, I decided to try and install Anaconda in Windows SAFE MODE, and it worked! Here's what I did:
And created a GitHub account to post this update, in case there is any one else tearing their hair trying to install Anaconda... |
How come this is closed? The issue is still here. I hit it when trying to install miniconda via scoop. Scoop runs the installer in silent mode, so the problem becomes even harder to identify. Anyway, the issue has to do with either Windows PATH being too long, or PATH containing non-existent directories, or the whole environment variables block is too large. I was able to resolve this issue by reducing PATH to bare essentials temporarily in a command prompt:
And when I ran the installer from that command prompt, it finally worked. |
I had the same issue went through a lot of the above. Deleted anything anaconda/conda related and deleted my Path variable for my user. Everything installed as expected. |
delete all Environmental variables PATH and install again. it work for me |
Trying to install Anaconda 64-bit on a Windows 7 work machine, with only user privileges. The only thing that worked for me is installing it directly under C:\. Installation completed successfully. |
issue is still there. I am installing for all users with an admin account, on default path C:\ProgramData\Anaconda3 |
@bbakk14 Open command prompt. Type: |
@nehaljwani It just says |
Same problem ... tried everything in the thread above .... still getting the following error .... please help: Traceback (most recent call last): |
Usually, in a Windows installation, the value of the |
Hoping it helps someone, I kept getting the 'failed to make menus' error on Win10. Removing Java from environment path did the trick. |
Hi all, It happened to me and I solved doing this: 1-) Delete all variables from PATH (make a backup, to be able to put them back again later). Then it installed well. After that, put the PATH variables back. |
Whaaaat? Cannot be true!! Anaconda starts to do weird things on my environment... |
Another solution: install Microsoft Visual C++ Redistributable. Visit https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads |
If you are using windows 7 and if this problem persists after formatting. Just update to service pack 1 (KB976932) then install another update of KB2999226. This helps in my case to solve the "create menus" problem. |
Hey there!
If somebody can help me i'd be very thankful, cause i cant solve this by myself. As i see there is pretty odd issue, and i cant find a solution cause nothing works for me.
I have very new virtual pc ( win xp 64 ) and i'm trying to install anaconda/ miniconda. No matter. So i got 2 errors i *_have *_to ignore :
Failed to create Anaconda menus
Failed to add Anaconda to the system PATH
Ofcourse , if i just ignore this - nothing works. Cant launch even conda :
Failed to create process
Just cant understand why it doesn't work for me. I've installed anaconda on 4 different pc ( all win xp 64 ) And sometime it works, sometime doesn't
Regards, ALex!
The text was updated successfully, but these errors were encountered: