- 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:
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?
- Anaconda comes installed with Python 2.7. 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.3 your default version, you can download and install the appropriate miniconda3 installer. Not all packages are compatible with Python 3.3, 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).
- 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.
- 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 laterAnaconda 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