1
- title: Installation
1
+ title: Installation
2
2
3
- Installing Python-Markdown
4
- ==========================
3
+ # Installing Python-Markdown
5
4
6
- The Easy Way
7
- ------------
5
+ ## The Easy Way
8
6
9
- The easiest way to install Python-Markdown is simply to type one of the
10
- following commands from the command line as an Admin/Root user :
7
+ The easiest way to install Python-Markdown is simply to type the
8
+ following command from the command line:
11
9
12
10
``` bash
13
11
pip install markdown
14
12
```
15
13
16
- or
17
-
18
- ``` bash
19
- easy_install markdown
20
- ```
21
-
22
14
That's it! You're ready to [ use] ( reference.md ) Python-Markdown. Enjoy!
23
15
24
- Installing on Windows {: #windows }
25
- -----------------------------------
26
-
27
- Download the Windows installer (` .exe ` ) from
28
- [ PyPI] ( http://pypi.python.org/pypi/Markdown )
29
-
30
- Double-click the file and follow the instructions.
31
-
32
- If you prefer to manually install Python-Markdown in Windows, download the
33
- Zip file, unzip it, and on the command line in the directory you unzipped to,
34
- run the following command:
35
-
36
- ``` text
37
- C://path/to/python.exe setup.py install
38
- ```
39
-
40
- If you plan to use the provided command line script, you need to make sure your
41
- script directory is on your system path. On a typical Python install of Windows
42
- the Scripts directory is ` C:\PythonXX\Scripts\ ` (were "XX" is the Python version
43
- number, i.e., "27"). Adjust the path according to your system and add to your
44
- system path.
45
-
46
- Installing on \* nix Systems {: #linux }
47
- ---------------------------------------
48
-
49
- From the command line do the following (where 2.x is the version number):
50
-
51
- ``` bash
52
- wget http://pypi.python.org/packages/source/M/Markdown/Markdown-2.x.tar.gz
53
- tar xvzf Markdown-2.x.tar.gz
54
- cd markdown-2.x/
55
- sudo python setup.py install
56
- ```
16
+ For more detailed instructions on installing Python packages, see the
17
+ [ Installing Packages] tutorial in the [ Python Packaging User Guide] .
57
18
58
- See [ PyPI] ( http://pypi.python.org/pypi/Markdown ) for all available versions.
19
+ [ Installing Packages ] : https://packaging.python.org/tutorials/installing-packages/
20
+ [ Python Packaging User Guide ] : https://packaging.python.org/
59
21
60
- Using the Git Repository {: #git }
61
- ----------------------------------
22
+ ## Using the Git Repository {: #git }
62
23
63
24
If you're the type that likes to live on the edge, you may want to keep up with
64
25
the latest additions and bug fixes in the repository between releases.
@@ -67,7 +28,5 @@ get a copy of Python-Markdown from the repository do the following from the
67
28
command line:
68
29
69
30
``` bash
70
- git clone git://github.com/Python-Markdown/markdown.git python-markdown
71
- cd python-markdown
72
- python setup.py install
31
+ pip install git+https://github.com/Python-Markdown/markdown.git
73
32
```
0 commit comments