Score:0

Removing conda from path

in flag
echo $PATH
[OUT] /home/cmaspi/anaconda3/bin /home/cmaspi/.local/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin

I've already removed anaconda3 directory, removed anaconda related lines from both ~/.bashrc and ~/.config/fish/config.fish

How do I get rid of anaconda from my PATH?

I've already referred this question and official documentation. I must add that I did the things in option A of the documentation, I didn't have the export path line that is

export PATH="/Users/jsmith/anaconda3/bin:$PATH"

in my ~/.bashrc or ~/.profile

vanadium avatar
cn flag
You opened a new terminal in the mean time? With the lines removed from .profile the variable will be gone only after closing and reopening the terminal.
in flag
Yes, I did open a new terminal instance, I also rebooted system just to make sure.
vanadium avatar
cn flag
Look closer: it will not necessarily be an `export` command. Could be just an assignment, i.e. `PATH=...`, normally in .profile for bash. Otherwise, you will need to see where it may be defined systemwide, e.g https://www.tecmint.com/set-unset-environment-variables-in-linux/ could be in many places.
in flag
Finally solved it, I don't entirely understand the solution. So, it's not worthy of being an answer. fish_user_paths was set at /home/cmaspi/anaconda/bin , from what i have found out, it is responsible for having some path being reflected across shells, I just cleared this variable using "$ set --erase fish_user_paths" and now things seem to be about right. Thanks to all who replied.
in flag
I must add, for me fish_user_paths just contained this anaconda path, which meant erasing the entire variable was not a problem.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.