Continuum Analytics

Anaconda FAQ

I have installed Anaconda on Mac/Linux, but I cannot use the commands.

How do I update Anaconda?

How do I install Anaconda on a non-networked machine?

I’ve installed Anaconda. Now what? How do I open a package?

How do I install additional packages into Anaconda?

How do I install packages into Anaconda offline?

I want Python 2.6 or Python 3. Does Anaconda include it?

How do I install license files for Anaconda Add-Ons?

How do I update my conda environments? Can I update all of them at once?

How do I setup my IDE to use Anaconda?

I’m trying to use tkinter in python3 in Mac OS 10.8.3, but I keep getting an error. What’s going wrong?

Why am I getting errors when I try to update or install packages with conda on Windows?

Why doesn’t Cython work on OSX?

Did you compile CPython using Visual Studio? And if so, which version?

How do you handle linking problems when Python extensions are compiled with gcc?

When I try to import theano, Python crashes. How do I correct this?

How do I uninstall Anaconda?

I have a question that is not answered here.


I have installed Anaconda on Mac/Linux, but I cannot use the commands.

If you have installed Anaconda but are not able to load the correct versions of python and ipython, or if you see conda: command not found when trying to use conda, this may be an issue with your PATH environment variable. At the prompt, type:

export PATH=~/anaconda/bin:$PATH

For this example, it is assumed that Anaconda is installed in the default ~/anaconda location.

How do I update Anaconda?

For version 1.2 and later

At the prompt, type:

$ conda update conda
$ conda update anaconda

For versions earlier than 1.2, a new installer must be downloaded from the Continuum store and installed. This is also recommended for Windows users with an Anaconda install version older than 1.4.

How do I install Anaconda on a non-networked machine?
You will need to have a local copy of the appropriate Anaconda installer for the non-networked machine. You can copy the Anaconda installer to the target machine using many different methods including (but not limited to) a portable hard drive, USB drive, or a CD. Once you’ve copied the installer to the non-networked machine, simply follow the Anaconda installation instructions.
I’ve installed Anaconda. Now what? How do I open a package?

Many people write Python code using a text editor like Emacs or Vim. Others prefer to use an IDE like Spyder, Wing IDE, PyCharm or Python Tools for Visual Studio. Check out How to setup your IDE to use Anaconda for more information on using an IDE with Anaconda.

Anaconda also includes a graphical Launcher application that enables you to start IPython Notebook, IPython QTConsole, and Spyder with a single click. On Mac, double click Launcher.app in your ~/anaconda directory. On Windows, you’ll find Launcher in your Start Menu. The Start Menu also has an Anaconda Command Prompt that, regardless of system and install settings, will launch the Python interpreter installed via Anaconda. This is particularly useful for troubleshooting, if you have multiple Python installations on your system.

From the Terminal or Command Prompt, you can start Python by typing python and IPython by typing ipython. To import a library into an editor, simply type import X where X is the name of the package.

It is also useful to familiarize yourself with conda, our package and environment manager tool. From the Terminal or Command Line, type the command conda -h to pull up the help menu.

How do I install additional packages into Anaconda?
First, you may try to install the package using the conda command, i.e. try typing conda install <pkg name>. If the package is not available, you can install it by the usual means, e.g. pip, or from source using a setup.py file, which should be included with most Python packages. There is nothing special about the Anaconda Python interpreter which would not allow “hand-installed” packages to work. If you are having difficulties installing an outside package, please reach out to the package creators/maintainers for help, or ask them to contact us in an effort to include their package in Anaconda. We are very open to giving our users more choices and making the experience as easy as possible. Finally, you may also reference and post to our free Anaconda Support Group.
How do I install packages into Anaconda offline?

You can directly install a conda package if you have it available on your local machine (use the full path for the package to ensure conda finds it):

conda install <package-file-name>.tar.bz2

If you do not have the package on the target machine, you’ll need to move a copy of <package-file-name>.tar.bz2 to it. Packages installed by conda are found in the anaconda/pkgs directory.

You can also install a tar-file directly (.tar) that itself contains many conda packages at any path location. You can make it easily using tar and then install it directly as well. No internet connection is needed as long as the tar-file is available on the target machine. Use the full path for the tar-file to ensure conda finds it:

conda install <tar-file-name>.tar
I want Python 2.6 or Python 3. Does Anaconda include it?
The regular Anaconda installers come with Python 2.7, and the new Anaconda3 come with Python 3.4. To use Python 2.6 or 3.3, you must create a new conda environment using the conda create command. Keep in mind to access the Python 2.6 or Python 3 packages you will need to be able to access the internet and the Continuum Analytics repositories. Documentation for conda can be found here. If you would like to make Python 3.4 your default version, you can download and install the appropriate miniconda3 installer. Not all packages are compatible with Python 3.4, so you may receive package does not exist errors.
How do I install license files for Anaconda Add-Ons?
After purchasing a license from the Continuum store, you will be sent an email containing an attached license file. Copy this file into the ~/.continuum directory (located in your home directory). You can find advanced installation instructions here.
How do I update my conda environments? Can I update all of them at once?
To update packages in your environment, you can use the command conda update -n myenv X, where myenv is the name of the environment and X is the name of the package(s) you want updated. You cannot update all of your conda environments at once. The issue is one of dependencies, and we don’t want your custom created packages to break.
How do I setup my IDE to use Anaconda?
Check out How to setup your IDE to use Anaconda for more information on using an IDE with Anaconda.
I’m trying to use tkinter in python3 in Mac OS 10.8.3, but I keep getting an error. What’s going wrong?
OSx 10.8 does not come with X11, which must be installed to use TKinter with Python. To correct this problem, download Xquartz.
Why am I getting errors when I try to update or install packages with conda on Windows?
This may be due to a filelock issue. Before trying to update or install any packages with conda, be sure to terminate any running Anaconda processes (such as Spyder or IPython). Future versions of Anaconda will include a warning with this information.
Why doesn’t Cython work on OSX?
Cython requires Xcode to be installed. Cython needs a C compiler.
Did you compile CPython using Visual Studio? (and if so, which version, 2010?)
Yes, Python 2.6/2.7 was compiled with VS 2008 and Python 3.3/3.4 was compiled with VS 2010
How do you handle linking problems when Python extensions are compiled with gcc?
We resolve linking problems using the so-called mingw import library (the conda package libpython) which we also build and which is included in Anaconda.
When I try to import theano, Python crashes. How do I correct this?
For theano to work, you must have gcc installed.
How do I uninstall Anaconda?

Version 1.3.1 and later

Anaconda can be uninstalled by removing the root directory (~/anaconda by default; use the conda info command to confirm the location of the root directory).

Version 1.4 and newer

OSX and Unix uninstalls remain the same as in previous versions.

On Windows, click the Start button, and navigate to the Control Panel and select Uninstall a program, then find Anaconda in the list of programs

I have a question that is not answered here.
Free support for Anaconda is available through the Anaconda mailing list. For Continuum Analytics installation or technical support options, visit our support offerings page.