]> git.phdru.name Git - sqlconvert.git/blob - docs/install.rst
Update installation instruction for virtual envs
[sqlconvert.git] / docs / install.rst
1 Installation using pip
2 ======================
3
4 System-wide
5 -----------
6
7 ::
8
9     sudo pip install --trusted-host phdru.name --find-links=http://phdru.name/Software/Python/ --install-option='-O2' sqlconvert
10
11
12 User mode
13 ---------
14
15 ::
16
17     pip install --trusted-host phdru.name --find-links=http://phdru.name/Software/Python/ --install-option='-O2' --user sqlconvert
18
19 Virtual envs
20 ------------
21
22 ::
23
24     pip install --trusted-host phdru.name --find-links=http://phdru.name/Software/Python/ --install-option='-O2' sqlconvert
25
26 For Python 2.6 the command is easy_install.
27
28 Installation from sources
29 =========================
30
31 To install the library from sources system-wide run run the following
32 command:
33
34 ::
35
36     sudo python setup.py install -O2
37
38 If you don't want to install it system-wide you can install it in your
39 home directory; run run the following command:
40
41 ::
42
43     python setup.py install -O2 --user
44
45 Option '--user' installs sqlconvert into
46 $HOME/.local/lib/python$MAJOR.$MINOR/site-packages/ where python finds it
47 automatically. It also installs sqlconvert scripts into $HOME/.local/bin;
48 add the directory to your $PATH or move the scripts to a directory in your
49 $PATH.