Getting Started w/ Anaconda - anaconda

I downloaded Anaconda for a class assignment.
The assignment says to type "condas" in Window's Command Prompt to test if Anaconda has successfully installed , but when I do, the command prompt gives the message:
'condas' is not recognized as an internal or external command, operable program or batch file.
I've tried the same thing with "conda" and gotten the same result.
As far as I can tell, I need Anaconda to create Jupyter notebooks, which I can do using the Anaconda Prompt that comes included with Anaconda.
But why is my command prompt not recognizing condas?
Thanks in advance.

By default, Anaconda on Windows does not install itself in a way that makes it accessible from Command Prompt on windows. Instead it creates a special command line application called Anaconda Prompt.
Search for and start Anaconda Prompt from the start menu and use that instead of regular command prompt.

You need to add AnacondaX and AnacondaX\Script to path. You can do that in CMD. E.g. If I have Anaconda3 installed on C:\Users\USERNAME\AppData\Local\Continuum\Anaconda3, you can set path with this command
SETX PATH “%USERPROFILE%\AppData\Local\Continuum\Anaconda3; %USERPROFILE%\AppData\Local\Continuum\Anaconda3\Scripts”
If you close CMD and reopen it, all should work.

Related

How to access Anaconda in PowerShell after reinstallation?

Anaconda was installed by Systems Team on my work computer.
For reasons beyond this topic, they installed in Program Files, which I think is non-optimal.
So I ask permission to remove the installation and reinstall it via standard procedures.
When I open Anaconda PowerShell prompt it is still pointing to the Program Files installation which I have removed.
I have also checked the Path environmental variable, and there is nothing looking like Anaconda is still there.
How can I get Anaconda PowerShell prompt to work again?
It should be noted that conda command does work in regular command prompt.
Thanks.
Initialize conda for use with Powershell via
conda init powershell
This command should be run in Anaconda Prompt.
Before following #Peter's solution, I was able to track the problem via a more rustic procedure.
Right click on Start Menu's Anaconda PowerShell Prompt, and select Open File Location.
Right click on the icon's Properties, select Shortcut tab > Target field.
Copy the command to a text editor, and noticed it was still using an old location.
Changing the command to point to the right location did fix the problem.
... but that is only the command from the Start Menu, the rest is done by what was suggested before.
Thanks for the help.

no conda.exe -- need help installing anaconda properly on ms windows 10

I am encountering issues when installing anaconda 5.1.0 64-bit python 2.7 on windows10.
Q&A in the Setup dialog: There are two questions (1) I did not checkbox "add anaconda to my PATH env variable" because it is discouraged. (2) I also did not checkbox "register anaconda as my default python 2.7" because this might mess up my existing processes/scripts.
After this, it installs and declares victory; "anaconda prompt" shows up in start menu but that's about it. It opens a command prompt with
'C:\Anaconda2\Scripts\activate.bat' is not recognized as an internal or external command, operable program or batch file.
Will appreciate help in getting this install right. Thanks

Issue Closing Then Reopening Anaconda Prompt After Installation

I just installed Anaconda for Python 2.7 on my laptop running 64 bit windows 8.
Once I finish installing Anaconda I go to open the Anaconda prompt and then I run conda update --all. This runs seemingly fine. When it's done running I close the prompt by hitting the close button in the upper right corner.
The issue comes in when I then go to open a new Anaconda prompt. I go to my start menu and open a new prompt. However, instead of the prompt that opened immediately after installing Anaconda I get a command window with these three lines:
>was unexpected at this time.
PATH > #IF NOT ""=="" #chcp > NUL
PATH >
An error seems to happen when I try to open my Anaconda prompt and then my path gets changed back to my default non-Anaconda command prompt path.
Could someone provide any help with this issue?
Thanks!
Facing the same issue. I have a habit of opening Jupyter notebook through anaconda prompt which I cannot do now. Fortunately, the jupyter notebook is opening through Anaconda navigator. Not sure what will I do to use "conda" commands until this issue is solved
Same issue, except that my installation is already 2 months old, suddenly noticing this today.
Olivier.
Open the anaconda prompt and change the anaconda prompt directory to Anaconda/Scripts and then you can use the conda commands.

Anaconda Packages

I have Anaconda installed on my computer but when I type a command in cmd I only get 'conda' is not recognized as an internal or external command,
operable program or batch file. What could be the problem? It's the same with pip.
I can see that it is installed in my settings.
So Anaconda should have added jupyter to your PATH automatically during the install if you selected that option as shown in the installation video, if you did not select it, you need to do this manually, here are the steps to do so:
1)go to mu cpmuter properties and click on ADVANCE SYSTEM SETTINGS
2)Select the Advanced tab.
3)Click the Environment Variables button.
4)Under System Variables, select Path, then click Edit.
You'll see a list of folders, as this example for my system shows something like:
C:\Program Files\Windows Resource Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
You will notice that each of these file paths are separated by a semicolon ;
You can add additional folders that you want to include in searches. In this case, you need to add Anaconda to your path, it will be something like: C:\Users\myusername\Anaconda2
Add that to the list, make sure your spacing is correct
You'll need to restart the processes (e.g., command prompt) that use the system path to see the added folders.
-----------------------------------------------------------------------------## YOU CAN ALSO AVOID THIS MANUAL PROCESS ##
ANOTHER METHOD is reinstall this and while doing this make sure of thing that is shown in the scr shot below
while installing the anaconda the dialogue box appears giving two options
add anaconda to my path enviorment variable
register anaconda as my default python version
select both of this options though system will not recommend this but you have to mark
thankyou!!
all the best!!
Open your Anaconda Prompt instead of just your command prompt. Then type "conda list," you should get the correct output. I suspect that you did not add Anaconda to your PATH during installation and that's why your regular command prompt won't recognize the conda commands.
Find where you anaconda is installed. Usually, it is under %USERPROFILE%\AppData.... You can set path using SETX PATH on CMD. e.g. I have installed anaconda3. It was installed in its default path.
e.g.
SETX PATH “%USERPROFILE%\AppData\Local\Continuum\Anaconda3; %USERPROFILE%\AppData\Local\Continuum\Anaconda3\Scripts”
If you do not know where anaconda was installed, you can open "Anaconda prompt" app. You can see the environment path to your anaconda [You can find "Anaconda prompt" using Search Windows.

Why is PowerShell "not recognized" when installing Chocolatey?

I went to the Chocolatey website and copied the text for installing it and pasted into the administrator cmd.exe (using Windows 7). When I run the command I get:
'powershell' is not recognized as an internal or external command, operable program or batch file.
This GitHub article with Chocolatey installation instructions says:
This really is the easiest method because it requires no configuration of PowerShell prior to executing it.
It turns out that #balint was right about the path being incorrect. The path variable at some point had gotten replaced instead of appended to. I was able to install Chocolatey successfully after appending all the paths that had been erased previously!
you have some faulty PowerShell installation, or it is missing from the Windows PATH variable. Run in an administrator cmd:
cmd> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

Resources