Rm -rf /private/var/folders/w2/*/T/deepchem* || trueĬhmod +x. Note that the ordering of elements in this script is important: #!/bin/zsh This script should bootstrap without any requirements. The writer of those guides assumes you know what the commands do or you won’t blame / sue them if you make an error and delete your home folder and all your pictures and documents.I am working on creating a script for building DeepChem on M1 Mac. Use the command line to open the folders rather than removing them is my advice if you don’t get exactly the syntax of the commands you are copy and paste into terminal. How can I make 'rm' move files to the trash can?Ī safer bet is to substitute open for rm and you do need to recognize -rf or any flags passed to rm and delete them.Worse, if you rm the wrong thing, you may delete more than you bargained for. In the unlikely event you have some issue caused by the leftover files, it’s less complicated and less time consuming to erase and reinstall a Mac and get your documents and apps reinstalled than it is to reconstruct what anaconda installed and surgically reverse every remnant left on the filesystem. Unless there’s a large file lying around you won’t gain anything cleaning up hundreds of files and other tools let you find folders and large files to clean them together. Set up Time Machine so you’re backing up going forward and next time you want to install similar tool chains and environments, be sure you have a backup so you can roll back if that install gives poor results. If you’ve deleted the main program and the main folders (which I repeat above), I would say you’re good. Enter rm -rf ~/anaconda3 to remove the directory. Open the Terminal.app or iTerm2 terminal application, and then remove your entire Anaconda directory, which has a name such as anaconda2, anaconda3, or ~/opt. You should be able to reclaim the 5 GB of space easily without worrying about some stub files and mostly empty config files. Installers and applications that spray files and detritus all over the filesystem and rely on users to run many scripts, all changing weekly with version upgrades quickly becomes an intractable problem. This is a specific example of a common problem. When you have tested all remove the backup directory shown in the doc.Edit your shell startup files to both remove any entry altering your path for conda and also the parts in the conda initialise section.You have to remove the section starting with # > conda initialize > and ending with # However for more confusion the doc does not cover the normal new updates to. The doc says look for a line like that and then edit to remove it. To remove the entries from your shell first note that your step 10 is NOT what the uninstall doc says. You can find out the correct path by running conda info before starting to remove things The entry for base environment shows you the directory to remove. The uninstall for a single user only needs the first 4 steps (and possibly 3 is not required as 2 does that) and a step to alter your shell startup filesīut step 4 has to use the directory you installed anaconda in which is not always ~/anaconda. The installation put it in /opt/anaconda but the uninstall instructions assume you place it is ~/anaconda The issue is that the uninstall instructions assume that you have installed anaconda for just yourself however you have installed it for all users of the machine. I just wanted delete all the packages and files related to Anaconda. _conda_setup="$('/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" # !! Contents within this block are managed by 'conda init' !! bash_profil, because maybe It can be related with "my terminal (base) problem": # > conda initialize > Lots of other packages are still available: # packages in environment at /opt/anaconda3:Īlso, conda still run in my terminal as I see (base) every time I open it, here an example: (base) ~ % I'm sure another folder was in /user/MYNAME, but I think I've deleted it, because I can't see it anymore, even in the hidden folders. However, I didn't delete everything because I have still a folder in /opt path, /opt/anaconda3. I'm not sure I did the right steps, maybe you can give me some advice. At the end I've deleted the application throwing it in the trash and emptying it.That's what I did: 1) conda install anaconda-cleanģ) rm -rf ~/.condarc ~/.conda ~/.continuumġ0) export PATH=”/Users/MYUSERNAME/anaconda3/bin:$PATH I followed the instruction on the official website ( ) plus some other guides, but I'm note an expert and I didn't reach my goal. I was wondering if someone can please help me figure it our what to do. I've some question about uninstalling Anaconda from macOS Big Sur.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |