Anaconda FAQ¶
Contents
- Anaconda FAQ
- I have installed Anaconda; now what do I do?
- How do I install Anaconda on a non-networked machine?
- How do I install packages on a non-networked machine?
- How do I move Anaconda from one directory to another?
- I am still having package install difficulties. What options do I have?
- Does Anaconda include Python 2 or Python 3?
- How do I install license files for Anaconda add-ons?
- How do I set up my IDE to use Anaconda?
- How can I use TKinter with Python 3 in OS X 10.8?
- What causes an “unable to remove files” error when trying to update or install packages with conda on Windows?
- What causes an InsecurePlatformWarning?
- On OS X or Linux, what causes a “conda: command not found” error?
- Why are files left behind after uninstalling Anaconda on Windows?
- What can I do if Spyder fails to launch on Windows?
- How can I use Cython on OS X?
- How can I use theano?
- How is CPython compiled?
- How do you handle linking problems when Python extensions are compiled with gcc?
- How can I configure or opt out of using the Intel Math Kernel Library (MKL)?
- Why do I get a MKL Trial warning even though MKL-linked packages are now free and installed by default?
- What causes “permission denied” errors when loading MKL shared libraries?
- How can I use Anaconda on Windows XP?
- How can I cite Anaconda in an academic paper?
- I have a question that is not answered here.
I have installed Anaconda; now what do I do?¶
Take our 30-minute conda test drive, download a conda cheat sheet and see our “Using conda” section for fun things to do with Anaconda.
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.
How do I install packages on a non-networked machine?¶
You can directly install a conda package from your local machine by running the following command, and replacing “package-path” and “package-filename.tar.bz2” with your actual path and filename:
conda install /package-path/package-filename.tar.bz2
Packages installed by conda are found in the anaconda/pkgs directory.
You can also install a tar file (.tar) containing many conda packages by running this command, and replacing “packages-path” and “packages-filename.tar” with your actual path and filename:
conda install /packages-path/packages-filename.tar
If conda cannot find the file, try using an absolute pathname instead of a relative pathname.
NOTE: Installing packages directly from the file does not resolve dependencies. If your installed package does not work it may have missing dependencies that need to be resolved.
How do I move Anaconda from one directory to another?¶
Anaconda must be be installed in the directory in which you want it to work. So to place Anaconda in a different directory, delete it from the old directory, go to the new directory and install it there following the Anaconda installation instructions.
I am still having package install difficulties. What options do I have?¶
The package creators or maintainers may be able to help you with installing the package, or help by building and publishing an updated version. Package creators may also contact Continuum Analytics to submit their package for consideration to be included in Anaconda.
You may also build your own package, and share it with other users on Anaconda.org.
You can find free community support from the Anaconda Support Group or learn about Continuum’s other support options. Continuum also offers custom package builds as one of our consulting services.
Does Anaconda include Python 2 or Python 3?¶
Anaconda2 is built around Python 2.7 and Anaconda3 is built around Python 3.5. However, new environments created by either Anaconda2 or Anaconda3 can have any version of Python packaged with conda. See “Managing Python with conda”.
How do I install license files for Anaconda add-ons?¶
After purchasing a license, you will be sent an email containing an attached license file. Put this file into a directory named ”.continuum” in your home directory. See our detailed installation instructions.
How do I set up my IDE to use Anaconda?¶
See our section on How to set up an IDE to use Anaconda for more information.
How can I use TKinter with Python 3 in OS X 10.8?¶
OS X 10.8 and later do not come with X11, which must be installed to use TKinter with Python. To correct this problem, download Xquartz.
What causes an “unable to remove files” error when trying to update or install packages with conda on Windows?¶
This may result from a file lock issue. Before trying to update or install any packages with conda, be sure to terminate any running Anaconda processes such as Spyder or IPython.
If you receive an error message like: Error: Unable to remove files for package: <package-name> please close all processes running code from conda and try again.
You can force the install of the package: conda install -f package-name
What causes an InsecurePlatformWarning?¶
This warning only appears when the installed version of Python is older than version 2.7.9. This message warns only that the validity of the SSL connection is not being verified; it should not affect your package downloads. Install this updated package to resolve this on Windows:
conda install ndg-httpsclient
NOTE: You will receive the SSL warning again when initially installing this package. Once it is installed, the warnings will go away.
On OS X or Linux, what causes a “conda: command not found” error?¶
Problems with the PATH environment variable can cause conda: command not found
errors or a failure to load the correct versions of python or ipython. To fix these issues, find the location of your Anaconda binary directory, add a line to the file .bashrc in your home directory to add that location to your PATH, and close and re-open your terminal windows. For example, a user with the username jsmith on a Linux machine whose Anaconda binary directory is ~/anaconda
could add this line to their .bashrc file:
export PATH="/home/jsmith/anaconda/bin:$PATH"
Why are files left behind after uninstalling Anaconda on Windows?¶
Since some users may need to keep setting files and other users may need to delete them, Anaconda leaves some setting files in place when it is uninstalled. Specifically, the directories .spyder2
, .ipython
, .matplotlib
, and .astropy
remain. Depending on your version of Windows these may be in C:\Documents and Settings\Your_User_Name
or in C:\Users\Your_User_Name
.
What can I do if Spyder fails to launch on Windows?¶
- Try launching it again.
- On the menu, choose “start” and then “Reset Spyder Settings”, then try to launch Spyder again.
- Launch the command prompt by running “cmd” from the Start menu, then type “Spyder” in the command prompt.
- Delete the directory
.spyder2
from theC:\Documents and Settings\Your_User_Name
directory and then repeat the previous steps.
How can I use Cython on OS X?¶
Cython needs a C compiler, so you’ll need to install Xcode.
How can I use theano?¶
Install gcc and then import theano. Importing theano without gcc can cause Python to crash.
How is CPython compiled?¶
- Python 2.6 and 2.7 were compiled with Visual Studio 2008
- Python 3.3 and 3.4 were compiled with VS 2010
- Python 3.5 was compiled with VS 2015
How do you handle linking problems when Python extensions are compiled with gcc?¶
We resolve linking problems using the mingw import library (the conda package libpython), which Continuum Analytics builds and includes with Anaconda.
How can I configure or opt out of using the Intel Math Kernel Library (MKL)?¶
Please see the Anaconda MKL documentation for information on configuring and uninstalling MKL.
Why do I get a MKL Trial warning even though MKL-linked packages are now free and installed by default?¶
Please see the Anaconda MKL documentation on dismissing MKL Trial warnings.
How can I use Anaconda on Windows XP?¶
Windows XP is supported on Anaconda versions 2.2 and earlier. Download it from our archive.
How can I cite Anaconda in an academic paper?¶
If you wish to cite Anaconda in a paper, we recommend this format:
Anaconda Software Distribution. Computer software. Vers. 2-2.4.0. Continuum Analytics, Nov. 2015. Web. <https://continuum.io>.
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.