Conda Init zsh No action taken - linux

I am trying to start conda in Linux, when I want to add zsh which is the terminal it sends me that error and I can't continue. Does anyone know how I can fix this. I already tried with
conda deactivate
conda activate Test1
and still the same error. enter image description here
Resolve the problem

Related

MAC OS Unable to update, uninstall, pip install, sudo, conda prompts, always get "An unexpected error has occurred."

I have come to find out that I have several Python paths. Using Jupyter, SQ, I cannot find anyway online that shows me exactly my issue and resolving my path issues.
I have done all the below and then some. No matter what I try it gives me the same issue, "An unexpected issue..." I need conda and my environments and Conda will not open. I really need help removing Python paths and getting Conda to work again. The following shows my Python paths in VS code and I found the paths below that to be my 2 main paths in Jupyter. (Kernel dies as well) I'm am new to data analysis and I have followed the download instructions for all my lessons to the exact click. I have been having this issue for a few weeks, I have tried multiple terminal prompts, unfortunately I cannot remember them all. All of them are from stack.
pythondata /Users/me/Library/Jupyter/kernels/pythondata
python3 /Users/me/opt/anaconda3/share/jupyter/kernels/python3
Path=
import sys,os (tried changing or adding files)
conda info
conda list
conda install/uninstall
conda update
sudo chown...
sudo conda update (-n base conda, anaconda-navigator, navigator-update)
pip installs
conda install python=3.6
conda config --set allow_conda_downgrades true
conda install conda=4.6.14
at least 20 other commands, I started writing them down today...
I have really tried A LOT and all of these commands I get unexpected error.

How to open conda shell in mac

I am new to conda and mac (i mostly use Ubuntu and pip). Is there a conda shell on mac (I guess I read somewhere that there is none).
If that is the case, how am I suppose to run command like:
conda env create -f environment.yml
as asked here: https://github.com/datitran/face2face-demo
I opened Anaconda Navigator then > Environment > Create > import > and in Specification File gave path of above environment.yml file.
Is the above step correct?
Is there a way to do this via shell in Mac? (I am using macOS Catalina Version 10.15.3)
I am not a Mac user, but I think you can run anaconda commands directly from the terminal, just like in Ubuntu. There's no anaconda prompt in Mac.
I was having the same problem. I opened the Anaconda Navigator program. I clicked on "Environments." Under the working environment, I clicked the right arrow and one of the options was "Open Terminal." When the terminal opened using this sequence, I was able to use the conda commands. Like you I am using Mac OS Catalina.
if in case you have clicked no during conda installation when it asked if it should be added to path or you just can't access it on your terminal for any other reason:
Run this conda update anaconda-navigator in your terminal.
But most likely it won't work because you don't have access of conda in your shell. What you have to do is run one at time the following steps in your terminal.
1st:
nano ~/.bash_profile
2nd:
export PATH=/usr/local/anaconda3/bin:$PATH
3rd:
source ~/.bash_profile
Then try:
conda
And finally make sure you exited your anaconda navigator, then run this:
conda update anaconda-navigator
This should do it, but if in case don't work out try to install homebrew in your Mac then repeat the steps.
On installing anaconda on mac it may install conda in the zsh shell. So you may want to test starting the zsh.
$ zsh
and it should start the terminal with the (base)
(base)$ conda --version
Never hurts to double check.

Conda Environment not activated in Git Bash

I've installed Git Bash and I'm using python which was installed via Anaconda.
I've already activated the environment within the Conda prompt and when I open Git Bash and type python, I get an error (see image below) but when I add add Anaconda3/python it works like a charm (see same image).
Error
But I get a warning even tho I've used activate conda base in the conda prompt.
Any ideas on how to fix this?
Thanks in advance.

"conda init" prevents anaconda-navigator from working on all but base environment

After running conda init from the terminal I am only able to run from the terminal anaconda-navigator from the base environment of anaconda. I want to make it so that I can run anaconda-navigator from any environment including no environment.
I started down this because conda activate myenv would not work. It recommended running conda init; so I did. Previously I could run anaconda-navigator from any anaconda environment and it would pop up but now if I try from anything but base it doesn't work and I get this error message "anaconda-navigator: command not found". However if I enter conda activate into the terminal to bring on the base environment the command works.
I just got done with a clean install of anaconda3 using the recommended steps https://docs.anaconda.com/anaconda/install/linux/
If I delete what conda init added to my .bashrc and add in
export PATH=/home/yourUserName/anaconda3/bin:$PATH
then anaconda-navigator works again from any environement but conda activate myenv stops working.
FYI: I ran conda config --set auto_activate_base False after installing anaconda3
I expect to be able to run anaconda-navigator from any anaconda environment and to be able to use conda activate myenv. Right now I can do one or the other by modifying my .bashrc

Can't install Spyder through Anaconda Navigator

I cannot install Spyder through Anaconda Navigator. I am a complete beginner when it comes to Python and I have no idea what's going wrong.
I have to create a new environment and open a project there.
What I did so far is: through Anaconda Navigator (1.9.7) I created a new environment (with Python 3.6). Then, for this specific environment I try to install Spyder. I click the 'install' button, a progress bar appears and then nothing happens.
I tried the same steps on friend's laptop and when I click install there, the progress bar also appears. When it's done the 'install' button changes to 'launch'. The only difference that I see between our computers is that I have Windows10 and he has a Macbook. I don't know whether this could be the problem somehow.
How can I install Spyder for a specific environment? What's going wrong with my installation in Anaconda Navigator?
Also, when I try to install Spyder through Anaconda Prompt (with Administrator privileges), I get the following error:
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(568): An error occurred while installing package 'defaults::openssl-1.1.1b-he774522_1'.
PermissionError(13, 'Permission denied')
Attempting to roll back.
Rolling back transaction: done
[Errno 13] Permission denied: 'C:\\Users\\eweli\\Anaconda3\\envs\\HAABSA\\Library\\bin\\libssl-1_1-x64.dll'
I managed to solve this by going to the directory where the file libssl-1_1-x64.dll is located (in your case, C:\Users\eweli\Anaconda3\envs\HAABSA\Library\bin\). Then, I removed the file (by cutting and pasting it to the desktop, just to be safe) and ran the installation command again in an Anaconda prompt (with admin rights):
conda install -c anaconda spyder
After that, the installation went smoothly and a new version of libssl-1_1-x64.dll was created in the corresponding directory (thus I deleted the one I moved previously).
To install spyder, go to the command line and to the directory where you work. Activate your virtual environment by typing
conda activate environment_name
Then once that returns just type
conda install spyder
This should install spyder in your virtual environment.
I had the same issue today, and weirdly a lot of versions didn't work out for me. However, what worked was to go to anaconda prompt, activate the environment and then type
conda install -c conda-forge spyder
Go the directory of your environement in terminal and type :
conda install -c anaconda spyder
it worked well for me.

Resources