How to install new packages for Mathematica?

Yaroslav Bulatov picture Yaroslav Bulatov · Jan 9, 2011 · Viewed 13.7k times · Source

What is the proper procedure way to install new packages for Mathematica?

In particular, when you download any notebook from MathWorld, you are are given a link to Mathworld packages, which is are zip files with dozens of .m files

Where do they go?

Answer

rcollyer picture rcollyer · Jan 9, 2011

To have your packages that you've either downloaded or personally created visible to Mathematica, put them in $UserBaseDirectory/Applications, or $BaseDirectory/Applications if you want them accessible to all users on your system. Alternatively, version 8.0.4 (and likely earlier) has a menu option: File -> Install which will do it for you. The menu option brings up the following dialog

install dialog

install type drop-down displayed

item source drop-down displayed

where the option "Install for this user only (name)" would install it under $UserBaseDirectory and the "for all users" option would install it under $BaseDirectory.

For more information on where Mathematica places everything I would read this tutorial, and look through directory operations functionality.