Difference between revisions of "Installing Personal Python Modules"
m (Cabreraruizdiazj moved page Personal Python Module Installation to Installing Personal Python Modules) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Python]][[Category:Software]] | [[Category:Python]][[Category:Software]] | ||
+ | {|align=right | ||
+ | |__TOC__ | ||
+ | |} | ||
=Introduction= | =Introduction= | ||
If you need a python module or a python-based application installed for regular use the best choice is to open a [http://support.rc.ufl.edu support ticket]. However, sometimes it is necessary to install a small personal python module or a software package that is not of production quality whether it is too new, buggy, or otherwise unsuitable for general use. In such cases use this guide to install a small personal python module or a python-based software package that is packaged with distutils i.e. you install it with '<code>python setup.py install</code>' in your home directory. | If you need a python module or a python-based application installed for regular use the best choice is to open a [http://support.rc.ufl.edu support ticket]. However, sometimes it is necessary to install a small personal python module or a software package that is not of production quality whether it is too new, buggy, or otherwise unsuitable for general use. In such cases use this guide to install a small personal python module or a python-based software package that is packaged with distutils i.e. you install it with '<code>python setup.py install</code>' in your home directory. | ||
Line 23: | Line 26: | ||
=Managing Python Environments= | =Managing Python Environments= | ||
See [[Managing Python environments and Jupyter kernels]] | See [[Managing Python environments and Jupyter kernels]] | ||
− | |||
− | |||
− |
Latest revision as of 14:51, 10 February 2023
Introduction
If you need a python module or a python-based application installed for regular use the best choice is to open a support ticket. However, sometimes it is necessary to install a small personal python module or a software package that is not of production quality whether it is too new, buggy, or otherwise unsuitable for general use. In such cases use this guide to install a small personal python module or a python-based software package that is packaged with distutils i.e. you install it with 'python setup.py install
' in your home directory.
Alternate Location Install
The first step is to install the software into a non-standard location. With when installing software packaged with distutils this is most often accomplished by specifying the '--home
' argument to the setup.py script. For example,
$ module load python/2.7.6 $ python setup.py install --home=$HOME/python/2.7.6
Making Software Available
Once the software is installed it is necessary to make it available within your shell environment. Assuming that both python modules and executable scripts were installed the following variables would need to be changed:
Change Shell Environment Directly
Modules:
export PYTHONPATH=$PYTHONPATH:${HOME}/python/2.7.6/lib/python
Executables:
export PATH=$PATH:${HOME}/python/2.7.6/bin
Write Personal Environment Module
See the Personal Modules Section to get started.