anaconda powershell prompt tries to open conda.exe from removed miniconda installation - anaconda

windows11
I have uninstalled a previous miniconda installation
Now I have anaconda installed
when use the anaconda powershell start menu entry I get this error:
C:\Users\myuserid\miniconda3\Scripts\conda.exe
I have checked environment variables an path variables and have not found miniconda there
also the .lnk file and the referenced conda-hook.ps1 do not contain miniconda entries
what do you suggest where is the remainder of miniconda and how to remove it?

Related

Conda is not recognized as an internal or external command

Command line screen capture
I have successfully installed Anaconda on my drive D and added it to my path so that I am able to access it from cmd without using the Anaconda prompt.
However, after running where conda on the Anaconda prompt, I got the 3 different locations
- D:\Anaconda\Library\bin\conda.bat
- D:\Anaconda\Scripts\conda.exe
- D:\Anaconda\condabin\conda.bat
to set as paths but after doing that, the conda command on my command line still does not work.
From the error image and description of the issue, I can see that you have installed the anaconda in the D:\ drive and tried to access it through the C:\ drive.
To access the conda in command prompt, you need to run the below commands :
C:\Users\Loni Tande>cd D:\Anaconda\Scripts
D:\Anaconda\Scripts>conda
D:\Anaconda\Scripts>conda --version
Please make sure you have the latest Anaconda version installed in your system to access all its functionalities.

I have added conda and python path to the environment variable, but jupyter notebook is still not getting opened from cmd

I was trying to add conda and python to the environment variable using SETX Command from CMD but it was failing. I tried setting it using PowerShell and it worked. The path was added successfully but I still can't open Jupyter Notebook from my cmd.
Adding Python to the environment path is bad practice, see Anaconda FAQ. If you haven't installed Anaconda with it's default settings, you first need to:
Initialize your shells
conda init --all
After this you should have ../Anaconda3/condabin only in your path (more information via conda init --help).
But before you can run Jupyter, you also need to activate Anaconda:
C:\> conda activate
(base) C:\> jupyter notebook
The activation will add the following folders of the conda base environment to your PATH:
\Anaconda3;
\Anaconda3\Library\mingw-w64\bin;
\Anaconda3\Library\usr\bin;
\Anaconda3\Library\bin;
\Anaconda3\Scripts;
\Anaconda3\bin;
The python.exe resides in Anaconda3, jupyter.exe in Anaconda3\Scripts, so it's not enough to just add the first folder to your Path. And it's especially important to have the libraries on your Path when you want to run C-based packages like numpy.
But the very point behind the conda activate mechanism is that it allows you to configure and run different environments with different versions of python and 3rd party packages that would otherwise conflict, see Managing environmnts.
On top of that you can even install Python from python.org next to your Anaconda distribution, since conda will make sure that they won't interfere.

Anaconda continue installation on Linux

I was installing anaconda for my Ubuntu 18.04 machine but I happened to exit the terminal accidentally after a couple of hours. I wish to resume the installation process at that step where it was installing various packages like sklearn, qt, etc.
I get the following error when I run bash Anaconda3-2018.12-Linux-x86_64.sh and give the path where I want my conda home to be (not the default home folder)
ERROR: File or directory already exists: '<path_to_anaconda>/anaconda3'
If you want to update an existing installation, use the -u option.
How do I approach this error? How do I recover from partial installation?
Also conda update --all gives an error conda:command not found

conda not recognized as an internal or external command

I've installed Anaconda and now I want to create a conda environment,
C:> conda create -n tensorflow pip python=3.5
but then I get the error that "conda" is not recognized as an internal or external command.
How can I fix this?
As Windows user you have to start a Anaconda Prompt from the start menu. Look in your start menu for anaconda3-64bit -> anaconda prompt.
Now the conda command should be found in this shell.
Otherwise add the Anaconda Binaries folder to your environment path.

Spyder does not run in Anaconda virtual environment on Windows 10

This is my first post here. I tried to find an answer to this question but to no avail.
Just installed Anaconda2 (2.7.11 Python kernel) on my Win10 machine. I am trying to learn the conda command. Here is my problem.
I go to the Anaconda prompt window.
I create a virtual environmant with conda create -n myenv python=3.4 command.
I activate the environment with activate myenv.
When I list the environmants with conda env list it shows as active (star next to it).
When I start python from a command line it shows me that it is running 3.4.
The same with ipython.
When I type spyder it opens the spyder window but shows me 2.7.11. This is confirmed by running print(sys.version).
Am I doing anything wrong or is this just windows 10 problem.
Thanks in advance,
Andy
When you type spyder, the search for this command begins in the paths that the conda environment created. If it cannot find it there, it will go and search at other places. In your case in the paths of the default Anaconda install. So after you activate your environment:
activate myenv
you need to install sypder inside this environment:
(myenv) conda install spyder
where (myenv) indicates the active environment.
Change the Python interpreter in the Preference menu. See pic below.
you just have to write
conda create -n myenv python=3.4 spyder
conda activate myenv
spyder
and for deactivation later on ..
conda deactivate
Note: using Windows 10.
To use Spyder in a particular environment, there are at least two options:
conda install spyder into that environment - the problem, for me, is that it also wants to install a large number of other packages that I don't want or need in that environment.
I just want to use Spyder for interactive programming/investigation using the particular packages that I have chosen to install in a particular environment. The solution to this is option 2.
Note: I installed Anaconda initially and so have Spyder in the Anaconda environment.
Copy the relevant Spyder files from the Anaconda environment into the particular environment(s) you want to use Spyder in:
From: C:\Users\User\Anaconda\Lib\site-packages
Copy: spyderlib & spyderplugins Folders
To: C:\Users\User\Anaconda\envs\[Environment_Name]\Lib\site-packages
From: C:\Users\User\Anaconda\Scripts
Copy: spyder.exe, spyder.ico, spyder_light.ico & spyder-script.py Files
To: C:\Users\User\Anaconda\envs\[Environment_Name]\Scripts
To use Spyder in the desired environment:
Activate the environment
(Environment_Name) prompt> spyder
This works for me!

Resources