@@ -42,6 +42,10 @@ You can find more about bpython - including `full documentation`_ - at our
4242==========================
4343Installation & Basic Usage
4444==========================
45+
46+ Installation using Pip
47+ ----------------------
48+
4549If you have `pip `_ installed, you can simply run:
4650
4751.. code-block :: bash
@@ -52,6 +56,64 @@ Start bpython by typing ``bpython`` in your terminal. You can exit bpython by
5256using the ``exit() `` command or by pressing control-D like regular interactive
5357Python.
5458
59+ Installation via OS Package Manager
60+ -----------------------------------
61+
62+ The majority of operating system of desktop computers comes with a package
63+ manager system, if you are any user of them, you can install ``bpython ``
64+ using the package manager.
65+
66+ Ubuntu/Debian
67+ ~~~~~~~~~~~~~
68+ Ubuntu/Debian family Linux users and install bpython using the apt package manager, using the
69+ command with sudo priviledge:
70+
71+ .. code-block :: bash
72+
73+ $ apt install bpython
74+
75+ In case you are using an older version, run
76+
77+ .. code-block :: bash
78+
79+ $ apt-get install bpython
80+
81+ Arch Linux
82+ ~~~~~~~~~
83+ Arch linux uses pacman as the default package manager, and you can use it to install bpython:
84+
85+ .. code-block :: bash
86+
87+ $ pacman -S bpython
88+
89+
90+ Windows
91+ ~~~~~~~
92+ **Caveats: ** As ``bpython `` makes use of the ncurses library of \* nix-family operating systems,
93+ bpython on Windows is not officially supported and tested.
94+
95+ However, you can still use bpython on Windows using a somewhat work around. Briefly, you should install
96+ these two packages using pip:
97+
98+ .. code-block :: bash
99+
100+ $ pip install bpython windows-curses
101+
102+ Then you should invoke a program called ``bpython-curses.exe `` instead of ``bpython.exe `` to use bpython:
103+
104+ .. code-block :: bash
105+
106+ $ bpython-curses
107+
108+ Mac OS
109+ ~~~~~~
110+ Like Windows, Mac OS does not include a package manager by default. If you have installed any
111+ third-party pacakge manager like MacPorts, you can install it via
112+
113+ .. code-block :: bash
114+
115+ $ sudo port install py-bpython
116+
55117===================
56118Features & Examples
57119===================
0 commit comments