How to restore shortcuts to Anaconda after upgrading to Windows 10

扶醉桌前 提交于 2019-12-03 02:18:31

The following worked for me (albeit on Windows 7):

  • Open a command prompt as administrator
  • Execute "C:\Anaconda3\pythonw.exe" "C:\Anaconda3\Lib\_nsis.py" mkmenus

I use Miniconda. When I updated with

conda update conda

there were these following lines along with the list of packages to be updated:

The following packages will be REMOVED:
console_shorcut-0.1.1-3
powershell_shortcut-0.0.1-2

I saw those lines after the update and the shortcut to the command window was gone. So I restored the Anaconda Prompt command window shortcut with

conda install console_shortcut

When using Miniconda installed for the local user:

C:\Users\<username>\AppData\Local\Continuum\Miniconda3\pythonw.exe C:\Users\<username>\AppData\Local\Continuum\Miniconda3\Lib\_nsis.py mkmenus

This was also on Windows 7.

mkmenus did not work for me but the following worked on Windows 10 32-bit, Miniconda3.

  1. Open command prompt (admin privileges not required).
  2. Navigate to your Miniconda\Scripts directory. Replace kk with your username.

    cd "C:\Users\kk\Miniconda3\Scripts"
    
  3. Run Activate.bat

    activate.bat
    
  4. Install console_shortcut.

    conda install -c anaconda console_shortcut
    

To solve this I did the following:

  1. Remove Anaconda with "add or remove program" link
  2. Reinstall Anaconda with the latest installer link

After this everything is restored and since the uninstall program does not remove user files your environments and settings are also still there. If for some reason you stored projects in the Anaconda folder, this folder will be removed so watch out for that ;)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!