Install Appion Packages » History » Revision 23
« Previous |
Revision 23/41
(diff)
| Next »
Jim Pulokas, 05/21/2010 02:03 PM
Install Appion/Leginon Packages¶
Install all the python packages included with myami as follows:¶
cd /your_download_area cd myami ./pysetup.py install
That will install each package, and report any failures. To determine the cause of failure, see the generated log file "pysetup.log". If necessary, you can enter a specific package directory and run the python setup command manually. For example, if sinedon failed to install, you can try again like this:
cd sinedon python setup.py install
python-site-package-path: where the installed python packages went:¶
Python installer put the packages you installed into its site-packages directory. This enables all users on the same computer to access them. The easiest way to discover where your installed package is loaded from by python is to load a module from the package using interactive python command lines like this:
Start the python command line from shell:
python
Import a module from the package. Let's try sinedon here. All packages installed through the above setup.py script should go to the same place.
python> import sinedon
If the module is loaded successfully, call the module attribute path (two underscrolls before "path" and two underscrolls after) will return the location of the module it is loaded from
python> sinedon.__path__ ['/usr/lib/python2.4/site-packages/sinedon']
In this case, /usr/lib/python2.4/site-packages/ is your python-site-package-path. If you go to that directory, you will find all the packages you just installed.
Save this value for use later, for bash:
export PYTHONSITEPKG='/usr/lib/python2.4/site-packages'
or C shell
setenv PYTHONSITEPKG '/usr/lib/python2.4/site-packages'
< Perform system check | Configure leginon.cfg >
Updated by Jim Pulokas over 14 years ago · 23 revisions