System-wide:
- sudo pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' m_lib
+ sudo pip install m_lib
User mode:
- pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' --user m_lib
+ pip install --user m_lib
For Python 2.6 the command is easy_install.
To install the library from sources system-wide run run the following
command:
- sudo python setup.py install -O2
+ sudo python setup.py install
If you don't want to install it system-wide you can install it in your
home directory; run run the following command:
- python setup.py install -O2 --user
+ python setup.py install --user
Option '--user' installs m_lib into
-$HOME/.local/lib/python2.$VERSION/site-packages/ where python finds it
+$HOME/.local/lib/python$MAJOR.$MINOR/site-packages/ where python finds it
automatically.