Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conda is corrupted after pip install conda

Tags:

My conda is corrupted after I run command "pip install conda". Is there any way to recover it ? Thanks

Here's the error I see when running conda command

ERROR: The install method you used for conda--probably either `pip install conda` or `easy_install conda`--is not compatible with using conda as an application. If your intention is to install conda as a standalone application, currently supported install methods include the Anaconda installer and the miniconda installer.  You can download the miniconda installer from https://conda.io/miniconda.html. 
like image 984
zjffdu Avatar asked Mar 02 '17 07:03

zjffdu


People also ask

Does pip break conda?

Once pip is used to install packages and software into a conda environment, conda will be “unaware” of these changes and may make modifications that would break the environment and result in errors.

How do you fix a broken conda environment?

The fix is to use the ./bin/conda executable in the conda git repository to force reinstall conda. That is, run ./bin/conda install -f conda . You can then verify with conda info that you have the latest version of conda, and not a git checkout.

Can I install conda with pip?

You can install pip in the current conda environment with the command conda install pip , as discussed in Using pip in an environment. If there are instances of pip installed both inside and outside the current conda environment, the instance of pip installed inside the current conda environment is used.

What is the difference between installing a package with conda and pip?

The fundamental difference between pip and Conda packaging is what they put in packages. Pip packages are Python libraries like NumPy or matplotlib . Conda packages include Python libraries (NumPy or matplotlib ), C libraries ( libjpeg ), and executables (like C compilers, and even the Python interpreter itself).


1 Answers

Simply, follow the instructions given in the error: Download miniconda, then run the script file by typing following command: bash <file_name.sh> e.g. bash Miniconda3-latest-Linux-x86_64.sh.

Now reopen the terminal for the changes to take effect.

If conda is already installed on your system, you can reinstall it with the -f force option, for example, bash Miniconda3-latest-Linux-x86_64.sh -f

To test your installation, enter the command conda --version. If installed correctly, you will see the version of conda installed.

miniconda: https://conda.io/en/latest/miniconda.html

conda troubleshooting: https://conda.io/docs/troubleshooting.html

like image 141
kHarshit Avatar answered Sep 20 '22 15:09

kHarshit