我不能在ubuntu上运行conda命令/activate环境? [英] I cannot run conda command /activate environment on ubuntu?
问题描述
我已经在 ubuntu
中安装了anaconda,并且遇到了anaconda的问题.我在conda环境中运行以下命令:
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
它突然停止工作.我要激活环境或使用 conda
运行任何命令后,会收到以下错误:
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.
我什至在 .bashrc
中添加了 export PATH =/home/user/anaconda2/bin:$ PATH
.有人可以帮忙吗?
I have even added export PATH=/home/user/anaconda2/bin:$PATH
to .bashrc
. Could someone please help?
推荐答案
pip install conda
可能会破坏conda的设置.从错误路径下载miniconda设置,然后在
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
要测试安装,请输入命令 conda --version
.如果安装正确,您将看到已安装的conda版本.
To test your installation, enter the command conda --version
. If installed correctly, you will see the version of conda installed.
这篇关于我不能在ubuntu上运行conda命令/activate环境?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!