I cannot run conda command /activate environment on ubuntu?

爱⌒轻易说出口 提交于 2021-02-10 19:41:36

问题


I have installed anaconda in ubuntu and am facing a problem with anaconda. I was running the following command in a conda environment:

271  pip install --user -r requirements.txt
  272  cd ..
  273  conda install ipython jupyter
  274  conda install jupyter
  275  python
  276  sudo apt-get install python-vtk python-wxgtk2.6 python-setuptools python-numpy python-configobj
  277  sudo apt-get install python-vtk python-wxgtk2.8 python-setuptools python-numpy python-configobj
  278  conda install -c anaconda mayavi==4.5.0

It suddenly stopped working. Once I want to activate an environment or run any command with conda, I am receiving the following error:

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.

I have even added export PATH=/home/user/anaconda2/bin:$PATH to .bashrc. Could someone please help?


回答1:


pip install conda can corrupt the conda setup. Download miniconda setup from the path in the error and run below

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.



来源:https://stackoverflow.com/questions/47710568/i-cannot-run-conda-command-activate-environment-on-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!