I had a conda environment in my PC and yesterday I updated dependencies in that env using the command conda update --env. But when I tried to find Anaconda Prompt in the windows search bar today, that is not showing. I search all the questions regarding this problem on the SO, but many answers were not helpful or with broken links. I'm somewhat new to conda, therefore any helpful suggestion is highly appreciated.
You can toggle between the conda environment as such:
$ conda activate # this will enter the conda shell
$ conda deactivate # this will leave the conda shell
Let me know if you need any more help.
Related
I am creating a conda env with conda create -n env python==3.8. But when I activate it and do python -V, it shows Python 3.6.8. Outside of the activated conda env python -V outputs Python 3.8.13.
I've gone through similar issues but none of the advice helps. I am desperate and mad :D
How is your Anaconda's Version?
1.
You must use "Anaconda Prompt (Anaconda3)" into command line,
and try "conda update --all", update your Anaconda.
2.
Did you install Python 3.6.X in your computer and update it?
If yes, this is why you at Outside see the python -V =3.6.13
I have problems creating a new Anaconda environment. I am new to Python and Anaconda and in another thread (Customize axes in Matplotlib) I was asked to create an new environment because apparently I was using an old version of some packages (Pandas, Matplotlib and also from Jupyter).
So I inserted the following comments in the Anaconda prompt:
conda update conda
conda create -n myenv python=3.7
Both of them could be executed without an error and a new environment was created in Anaconda. I was further told to use the following comment:
conda activate myenv
source activate myenv
Both of them lead to error messages. The first one leads to the message "CommandNotFoundError: 'activate'" and the second one to "The instruciton source is either spelled wrong or could not be found" (translated from German). The helping person from the other thread told me to ask this in a separate question because, he or she does not know, what the problem might be. Does anyone of you have an idea.
You version is old. Please update your conda to the latest version. Then conda activate myenv would work. You can update by running the following command in your terminal:
conda update conda
I have quite some problems using python on my Mac. I need different versions from 3.5 to 3.7 and multiple packages for data science. Due to various instructions on the web I ended up installing python 3.6 itself, anaconda, pipenv and maybe more stuff I can't even remember.
I suppose there is no other way to eliminate this mess than to format everything and start over. Currently my terminal is showing some sort of prefix for the environment in the terminal. Something like:
(base) user#machine:~$:
How can I at least get rid of this environment prefix? It appeared after installing pipenv, which seems to have taken over my previous anaconda environments. I fear those vanish to when uninstalling pipenv.
The deactivate command alone will get you out of the currently activated virtual environment.
(base) user#machine:~$:
(base) user#machine:~$: deactivate
user#machine:~$:
As far as I know, this works across all operating systems.
Found the problem: Anaconda edited the .bash_profile which gets executed on the mac for each new terminal. I deleted the anaconda entry and the base prefix is gone.
Also, for anyone that is using zsh and Anaconda.
You can remove the entry Anaconda makes from the ~/.zshrc file in addition to the conda deactivate
Conda can be configured with command conda config
This command will remove message about the current environment:
conda config --set changeps1 no
This command will add messages about the current environment:
conda config --set changeps1 yes
https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#change-command-prompt
Not sure if this is a bug, but if anyone has a suspected way to fix this issue, I would be eternally grateful.
Description
After activating an environment in the Anaconda Prompt, when I deactivate I seem to lose all conda-related information. In other words, it returns me to a normal Windows command prompt. (No Python, no conda commands, etc.) This is rather annoying because it means I need to open another Anaconda Prompt and navigate back to the folder where I was working.
Steps to reproduce:
Create a python environment with Anaconda Prompt
Activate it
Deactivate it
Try conda list
I just had 30 new users install Anaconda with Python 3.6 earlier this week, all on Windows, and they all experienced this issue. I have Miniconda, they have Anaconda.
Config info
platform : win-64
conda version : 4.3.25
python version : 3.6.1.final.0
EDIT: forgot to mention that I submitted a bug report just in case this was a bug. No responses at the moment.
Turns out, my understanding of deactivate was wrong -- it's purpose is to completely deactivate conda and remove all traces from the terminal. So this behavior is what deactivate is actually meant to do, not switch you to your root environment.
See the issue response here: link.
Run in Windows prompt:
cmd "/K" C:\ProgramData\Anaconda3\Scripts\activate.bat C:\ProgramData\Anaconda3
You will have anaconda prompt back.
Tried to
conda install -c conda-forge requests-futures=0.9.7
but failed with
conda is not recognized as an internal or external command,
C:\Users\user_name\Anaconda3\Scripts has been set for Path in environment variables under both user and System variables.
I installed Python 3.5 as well and it is on Path, I am using Win10 X64.
How to fix the issue?
When you install anaconda on windows now, it doesn't automatically add Python or Conda to your path.
If you don’t know where your conda and/or python is, you type the following commands into your anaconda prompt
Next, you can add Python and Conda to your path by using the setx command in your command prompt.
Next close that command prompt and open a new one. Congrats you can now use conda and python
Source: https://medium.com/#GalarnykMichael/install-python-on-windows-anaconda-c63c7c3d1444
There is a similar question asked here before, check this may be it will help you.
To make sure that conda package is installed correctly, check if conda package files , i.e conda conda-env conda-env-script conda-script conda-server conda-server-script etc are present in Anaconda3\Scripts folder.
I had a similar problem when using cmd.
From your Command prompt 'C:\Users\zkdur\anaconda3\Scripts
Now try
conda init --help
conda init --verbose after that restart your command prompt and conda will be working.
After installing Anaconda on windows 10, you can use Anaconda prompt from start menu to activate a conda enabled terminal window.
Just Check Both the options while installing Anaconda.
(https://i.stack.imgur.com/WogNs.jpg)