X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=INSTALL.txt;h=cb6dea5b39cd6037d36ff894d94a05daa371427a;hb=1addb103dea363b40532fda6c218f822494d15bb;hp=42fd7fa3ada6726ab545877c4effffe767daf37a;hpb=c185eb047887f61ab0a380ea400827a4e71e7753;p=m_lib.git diff --git a/INSTALL.txt b/INSTALL.txt index 42fd7fa..cb6dea5 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,17 +1,20 @@ m_lib requires Python 2.6, 2.7 or 3.4+. -Installation script setup.py requires setuptools. If you don't have it -installed setup.py will try to download and install it. +Installation script setup.py requires setuptools. Installation using pip: 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 + + Virtual environments: + + pip install m_lib For Python 2.6 the command is easy_install. @@ -20,13 +23,13 @@ Installation from sources: 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.