Как удалить анаконду с компьютера
/.bash_profile but it still uses the Anaconda python and I can still run the conda command.
2,882 3 3 gold badges 13 13 silver badges 22 22 bronze badges haha no way you went to an almost 2 year old post to mark it as duplicate how does one uninstall conda if in addition it cannot find the conda command but the directory still exists?10 Answers 10
To remove the configs:
Once the configs are removed you can delete the anaconda install folder, which is usually under your home dir:
Also, the anaconda-clean --yes command creates a backup in your home directory of the format
/.anaconda_backup/<timestamp> . Make sure to delete that one also.
EDIT (v5.2.0): Now if you want to clean all, you will also have to delete the two last lines added to your .bash_profile . They look like:
3,146 3 3 gold badges 30 30 silver badges 56 56 bronze badges 4,995 1 1 gold badge 20 20 silver badges 16 16 bronze badges Out of curiosity, what does simple rm leave that anaconda-clean --yes gets rid of? Great guide, but with a small typo - the default installation location for Anaconda is the root folder, not the home folder. Thus, rm -rfTo uninstall Anaconda open a terminal window:
- Remove the entire anaconda installation directory:
Note: You may need to edit .bashrc and/or .profile files instead of .bash_profile
Remove the following hidden files and directories, which may have been created in the home directory:
/anaconda3 will fail silenty, i.e., run without actually deleting anything. The correct command is sudo rm -rf /anaconda3 or sudo rm -rf /anaconda2 depending on the Anaconda version installed."
In my case (Mac High Sierra) it was installed at
Open the terminal and remove your entire Anaconda directory, which will have a name such as “anaconda2” or “anaconda3”, by entering the following command: rm -rf
When running conda uninstall I get CondaValueError: Value error: no package names supplied, try "conda remove -h" for more details write echo $PATH in your terminal to check if there is some reference to anaconda, if there is use export PATH="/path/you/want/to/keep"The following line doesn't work?
You should know where your anaconda3(or anaconda1, anaconda2) is installed. So write
Now use that somewhere and run:
This is one more place that anaconda had an entry that was breaking my python install after removing Anaconda. Hoping this helps someone else.
If you are using yarn, I found this entry in my .yarn.rc file in
removing this line fixed one last place needed for complete removal. I am not sure how that entry was added but it helped
After performing the very helpful suggestions from both spicyramen & jkysam without immediate success, a simple restart of my Mac was needed to make the system recognize the changes. Hope this helps someone!
This has worked for me:
then also remove from $PATH in .bash_profile
This is a nice idea, but according to the documentation, this is meant for removal of conda environments. Here is the way Anaconda suggests: using anaconda-cleanAdding export PATH="/Users/<username>/anaconda/bin:$PATH" (or export PATH="/Users/<username>/anaconda3/bin:$PATH" if you have anaconda 3) to my
/.bash_profile file, fixed this issue for me.
but if you like me that didn't work for some reason and for some reason your conda was installed somewhere else with telling you do this:
With over 25 million users worldwide, the open-source Individual Edition (Distribution) is the easiest way to perform Python/R data science and machine learning on a single machine. Developed for solo practitioners, it is the toolkit that equips you to work with thousands of open-source packages and libraries.
Anaconda Individual Edition
For WindowsPython 3.9 • 64-Bit Graphical Installer • 510 MB For MacOS
Python 3.9 • 64-Bit Graphical Installer • 515 MB
Anaconda Individual Edition is the world’s most popular Python distribution platform with over 25 million users worldwide. You can trust in our long-term commitment to supporting the Anaconda open-source ecosystem, the platform of choice for Python data science.
Search our cloud-based repository to find and install over 7,500 data science and machine learning packages. With the conda-install command, you can start using thousands of open-source Conda, R, Python and many other packages.
Individual Edition is an open source, flexible solution that provides the utilities to build, distribute, install, update, and manage software in a cross-platform manner. Conda makes it easy to manage multiple data environments that can be maintained and run separately without interference from each other.
Build machine learning models
Build and train machine learning models using the best Python packages built by the open-source community, including scikit-learn, TensorFlow, and PyTorch.
The open-source community at your fingertips
With Anaconda Individual Edition, the open-source world is your oyster. From robotics to data visualization, you can access the open-source software you need for projects in any field.
User interface makes learning easier
Anaconda Navigator is a desktop GUI that comes with Anaconda Individual Edition. It makes it easy to launch applications and manage packages and environments without using command-line commands.
Anaconda for the enterprise
With Anaconda's Team and Enterprise Editions, our stack can handle the most advanced enterprise data science requirements.
To uninstall Anaconda, you can do a simple remove of the program. This will leave a few files behind, which for most users is just fine. See Option A.
If you also want to remove all traces of the configuration files and directories from Anaconda and its programs, you can download and use the Anaconda-Clean program first, then do a simple remove. See Option B.
Option A. Use simple remove to uninstall Anaconda:
- Windows
- Use Windows Explorer to delete the envs and pkgs folders prior to running the uninstall in the root of your installation.
- In the Control Panel, choose Add or Remove Programs or Uninstall a program, and then select Python 3.6 (Anaconda) or your version of Python.
/opt . Enter rm -rf
Option B. Full uninstall using Anaconda-Clean and simple remove.
Anaconda-Clean must be run before simple remove.
Install the Anaconda-Clean package from Anaconda Prompt (terminal on Linux or macOS):
In the same window, run one of these commands:
Remove all Anaconda-related files and directories with a confirmation prompt before deleting each one:
Or, remove all Anaconda-related files and directories without being prompted to delete each one:
Anaconda-Clean creates a backup of all files and directories that might be removed in a folder named .anaconda_backup in your home directory. Also note that Anaconda-Clean leaves your data files in the AnacondaProjects directory untouched.
After using Anaconda-Clean, follow the instructions above in Option A to uninstall Anaconda.
Removing Anaconda path from .bash_profile¶
If you use Linux or macOS, you may also wish to check the .bash_profile file in your home directory for a line such as:
Replace /Users/jsmith/anaconda3/ with your actual path.
This line adds the Anaconda path to the PATH environment variable. It may refer to either Anaconda or Miniconda. After uninstalling Anaconda, you may delete this line and save the file.
Using Anaconda in a commercial setting? You may need to purchase a license to stay compliant with our Terms of Service. This can be accomplished through Anaconda Commercial Edition, Anaconda Team Edition, or Anaconda Enterprise. If you have already purchased Commercial Edition, please proceed to the Authenticating Commercial Edition section after completing your installation here.
Double click the installer to launch.
To prevent permission errors, do not launch the installer from the Favorites folder .
If you encounter issues during installation, temporarily disable your anti-virus software during install, then re-enable it after the installation concludes. If you installed for all users, uninstall Anaconda and re-install it for your user only and try again.
Read the licensing terms and click “I Agree”.
Select an install for “Just Me” unless you’re installing for all users (which requires Windows Administrator privileges) and click Next.
Select a destination folder to install Anaconda and click the Next button. See FAQ .
Install Anaconda to a directory path that does not contain spaces or unicode characters.
Do not install as Administrator unless admin privileges are required.
Choose whether to add Anaconda to your PATH environment variable. We recommend not adding Anaconda to the PATH environment variable, since this can interfere with other software. Instead, use Anaconda software by opening Anaconda Navigator or the Anaconda Prompt from the Start Menu.
Choose whether to register Anaconda as your default Python. Unless you plan on installing and running multiple versions of Anaconda or multiple versions of Python, accept the default and leave this box checked.
Click the Install button. If you want to watch the packages Anaconda is installing, click Show Details.
Click the Next button.
Or to install Anaconda without PyCharm, click the Next button.
After a successful installation you will see the “Thanks for installing Anaconda” dialog box:
If you are behind a company proxy, you may need to do some additional set up. See how to set up your proxy .
Problems?¶
What’s next?¶
Get started programming quickly with Anaconda in the Getting started with Anaconda guide.
Читайте также: