How to access Anaconda command prompt in Windows 10 (64-bit)

后端 未结 6 696
北恋
北恋 2020-12-15 15:47

I had to install the 64-bit version of Anaconda with python 3.5 in Windows 10. I followed the default settings (AppData/Continuum/Anaconda3). However, after ins

相关标签:
6条回答
  • 2020-12-15 16:00

    I added "\Anaconda3_64\" and "\Anaconda3_64\Scripts\" to the PATH variable. Then I can use conda from powershell or command prompt.

    0 讨论(0)
  • 2020-12-15 16:00

    To create Anaconda Prompt using Command Prompt, just create a shortcut file of Command Prompt and modify the shortcut target to:

    %windir%\System32\cmd.exe "/K" <Anaconda Location>\anaconda3\Scripts\activate.bat

    Example:

    %windir%\system32\cmd.exe "/K" C:\Users\user_1\AppData\Local\Continuum\anaconda3\Scripts\activate.bat

    0 讨论(0)
  • 2020-12-15 16:07

    To run Anaconda Prompt using icon, I made an icon and put

    %windir%\System32\cmd.exe "/K" C:\ProgramData\Anaconda3\Scripts\activate.bat C:\ProgramData\Anaconda3 The file location would be different in each computer.

    at icon -> right click -> Property -> Shortcut -> Target

    I see %HOMEPATH% at icon -> right click -> Property -> Start in

    OS: Windows 10, Library: Anaconda 10 (64 bit)

    0 讨论(0)
  • 2020-12-15 16:08

    After installing Anaconda3 on your system you need to add Anaconda to the PATH environment variable. This will allow you to access Anaconda with the 'conda' command from cmd.exe or PowerShell.

    The link I provided below go through the three major issues with not recognized error. Which are:

    1. Environment PATH for Conda is not set
    2. Environment PATH is incorrectly added
    3. Anaconda version is older than the version of the Anaconda Navigator

    LINK: https://appuals.com/fix-conda-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/

    My issue was resolved following the steps for issue #2 Environment PATH is incorrectly added. I did not have all three file paths in my variable environment.

    0 讨论(0)
  • 2020-12-15 16:12

    Go with the mouse to the Windows Icon (lower left) and start typing "Anaconda". There should show up some matching entries. Select "Anaconda Prompt". A new command window, named "Anaconda Prompt" will open. Now, you can work from there with Python, conda and other tools.

    0 讨论(0)
  • 2020-12-15 16:18

    How to add anaconda installation directory to your PATH variables

    1. open environmental variables window

    Do this by either going to my computer and then right clicking the background for the context menu > "properties". On the left side open "advanced system settings" or just search for "env..." in start menu ([Win]+[s] keys).

    Then click on environment variables

    If you struggle with this step read this explanation.

    2. Edit Path in the user environmental variables section and add three new entries:

    • D:\path\to\anaconda3
    • D:\path\to\anaconda3\Scripts
    • D:\path\to\anaconda3\Library\bin

    D:\path\to\anaconda3 should be the folder where you have installed anaconda

    Click [OK] on all opened windows.

    If you did everything correctly, you can test a conda command by opening a new powershell window.

    conda --version
    

    This should output something like: conda 4.8.2

    0 讨论(0)
提交回复
热议问题