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.
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.
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.
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.
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).
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With