311
votes
Why does "(base)" appear in front of my terminal prompt?
This can also be because auto_activate_base is set to True. You can check this using the following command
conda config --show | grep auto_activate_base
To set it false
conda config --set ...
124
votes
Accepted
Why does "(base)" appear in front of my terminal prompt?
This appears to come from your conda environment. In particular, you are activating conda from your ~/.bashrc as follows
# added by Anaconda3 installer
#export PATH="/home/jim/anaconda3/bin:$PATH"
. /...
63
votes
How to install Anaconda on Ubuntu?
Nobody has explained here why apt-get and other package managers don't have packages for anaconda.
An important reason for this is that anaconda is meant to be usable by a user who, for whatever ...
55
votes
Variable path issue : conda command not found
Try adding below line to your .bashrc file
export PATH=~/anaconda3/bin:$PATH
then try:
conda --version
to see version
49
votes
Why does "(base)" appear in front of my terminal prompt?
(base) appears due to change in conda environment.
The following command hides (base) environment.
conda config --set changeps1 False
38
votes
Accepted
How do I activate a conda environment in my .bashrc?
It looks like the accepted answers might be out of date. From the docs:
If your shell is Bash or a Bourne variant, enable conda for the
current user with
$ echo ". /home/<user>/miniconda3/...
29
votes
Why does "(base)" appear in front of my terminal prompt?
To deactivate a conda environment, enter:
conda deactivate
This will remove the (base) before your Linux prompt, as seen here:
23
votes
How to install Anaconda on Ubuntu?
If you are trying to it entirely in command line you use a bash script
python 2 anaconda install bash script:
# Go to home directory
cd ~
# You can change what anaconda version you want at
# https:...
20
votes
How do I activate a conda environment in my .bashrc?
For bash use:
$ cd YOUR_PATH_ANACONDA/bin
$ ./conda init bash
That will automatically edit your .bashrc.
Reload:
$ source ~/.bashrc
Test (install Spyder):
$ conda install -c anaconda spyder
Run ...
18
votes
Can't create anaconda shortcut to launch from desktop on ubuntu 17.10?
Following steps work in Ubuntu 16.04, but I don't know if it works in 17.04.
Create a shell script /home/paygilant/bin/anaconda.sh
export CONDA_PYTHON_EXE=/home/paygilant/anaconda3/bin/python
export ...
16
votes
How to set anaconda as a default python?
I have the same setup as you desire. In my case the anaconda installer added an entry in my ~/.bashrc file. I don't know why yours did not. So to get to do what you want, add this to your ~/.bashrc ...
16
votes
Accepted
16
votes
GLIBCXX 3.4.30 not found in conda environment
I got a very similar issue, and solved it by linking the the lib file into the conda environment. For your situation you may try something like this:
ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /...
12
votes
How to install Anaconda on Ubuntu?
In addition to @Vivek's answer, to get the latest python3 64-bit Linux version:
CONTREPO=https://repo.continuum.io/archive/
# Stepwise filtering of the html at $CONTREPO
# Get the topmost line that ...
12
votes
conda init gives me "no action taken"
While this does not try to fix this problem, rather helps as a workaround when I want to activate an env.
$ source ~/anaconda3/bin/activate <env_name>
11
votes
Variable path issue : conda command not found
Lets fix it like this:
Move it out of /root/ with:
sudo mv /root/anaconda3 /home/$USER
Add this to /home/ahmed/.bashrcplease don't use 'sudo' here simple do nano /home/$USER/.bashrc:
# Anaconda3
...
10
votes
Accepted
Creating and configuring .bash_profile
Ubuntu does not normally have a .bash_profile
You should add your change to the end of .profile instead, since this file will not be read if .bash_profile exists, and Ubuntu normally has code in ....
10
votes
Accepted
Anaconda-Navigator desktop launcher fails to start application
It seems like the .bashrc environment fails to load with your desktop launcher. That is why you need to manually specify the $PATH in the command that you want to execute. Try editing your desktop ...
8
votes
Can't create anaconda shortcut to launch from desktop on ubuntu 17.10?
First check if anaconda3 is installed on your system or not (Sometime the package may be broken due to network issues during installation). And whether you are able to launch anaconda-navigator ...
8
votes
Accepted
man <command> doesn't display anything after package installation with conda on Ubuntu 17.10
Turns out, after the anaconda installation or some package installation through conda, the default pager is re-written. The exact cause of this is unknown.
Just some more information
~$ anaconda --...
8
votes
Accepted
No indication of activated conda environment in terminal
It is most likely that you have ps1 value set to False, which enables prompt change with change of conda environment.
To check run from your ubuntu terminal:
$ conda config --show | grep changeps1
And ...
7
votes
How can I completely remove files of Anaconda as it is not installing properly?
Downloading and Installing Anaconda (Linux)
Download Anaconda from https://www.continuum.io/downloads.
Run installer script:
$ bash AnacondaX-x.x.x-Linux-x86[_64].sh
Accept the license (enter shows ...
7
votes
How do I switch back to python2 after Anaconda set python3 as the default?
Good answer here:
https://stackoverflow.com/questions/24405561/how-to-install-2-anacondas-python-2-7-and-3-4-on-mac-os-10-9
conda create -n python2 python=2.7 anaconda
then, to switch:
source ...
7
votes
conda init gives me "no action taken"
I had the same problem. Previously I had anaconda 2 but I removed to install anaconda 3. After installing anaconda 3 and using conda init I got the same error message, as I solved it. Enter your ....
7
votes
What am i doing wrong in Conda?
I stumbled across the same problem.
Here is some relevant information about what is happening:
https://stackoverflow.com/a/38851073
It seems that the libtinfo shared library shipped with conda does ...
6
votes
How do I activate a conda environment in my .bashrc?
Correct Fix
(works for versions >= 4.6)
find . -type f -name 'conda'
check where the conda binary is and thene cd to it or just give the complete path and run
conda config --set auto_activate_base ...
6
votes
matplotlib.pyplot is not working!
Your code got the following error message:
ImportError: numpy.core.multiarray failed to import
Change your Python code like this and then test it first in the terminal:
:~$ python
>>> import ...
6
votes
Anaconda is only available to root
Follow the uninstall process given in below link
https://docs.anaconda.com/anaconda/install/uninstall/
login as root user
sudo su
Install anaconda clean pkg
conda install anaconda-clean
remove all ...
5
votes
How to install Anaconda on Ubuntu?
Watch this video for complete installation
Download Anaconda from continuum here
To install Python 3.6 version
sudo bash Anaconda3-4.3.0-Linux-x86_64.sh
For Python 2.7 version
sudo bash ...
5
votes
Why doesn't Ubuntu Software Center have Anaconda?
Software in the Software Center is available in four main repositories:
Main - Canonical-supported free and open-source software.
Universe - Community-maintained free and open-source software.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
anaconda × 241python × 95
conda × 41
command-line × 33
python3 × 30
software-installation × 27
bash × 21
jupyter × 12
16.04 × 11
18.04 × 11
package-management × 11
20.04 × 10
spyder × 10
22.04 × 10
pip × 9
apt × 8
permissions × 8
bashrc × 7
gnome-terminal × 6
environment-variables × 6
paths × 6
14.04 × 5
launcher × 5
python-2.7 × 5
virtualenv × 5