comparison docs/installation_win_old.rst @ 8368:e5ccabbc3cd7 stable

release: merge default to stable for 0.6.0
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Sat, 02 May 2020 21:20:43 +0200
parents 01aca0a4f876
children 0a9ddb8cd8c1
comparison
equal deleted inserted replaced
8320:b1b1f69b1f28 8368:e5ccabbc3cd7
1 .. _installation_win_old: 1 .. _installation_win_old:
2
3 .. warning:: This section is outdated and needs updating for Python 3.
2 4
3 ========================================================== 5 ==========================================================
4 Installation on Windows (XP/Vista/Server 2003/Server 2008) 6 Installation on Windows (XP/Vista/Server 2003/Server 2008)
5 ========================================================== 7 ==========================================================
6 8
58 Copy C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat 60 Copy C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat
59 61
60 Step 2 -- Install Python 62 Step 2 -- Install Python
61 ^^^^^^^^^^^^^^^^^^^^^^^^ 63 ^^^^^^^^^^^^^^^^^^^^^^^^
62 64
63 Install Python 2.7.x x86 version (32-bit). DO NOT USE A 3.x version. 65 Install Python 3.8.x from:
64 Download Python 2.7.x from:
65 http://www.python.org/download/ 66 http://www.python.org/download/
66 67
67 Choose "Windows Installer" (32-bit version) not "Windows X86-64
68 Installer". While writing this guide, the latest version was v2.7.3.
69 Remember the specific major and minor version installed, because it will 68 Remember the specific major and minor version installed, because it will
70 be needed in the next step. In this case, it is "2.7". 69 be needed in the next step. In this case, it is "3.8".
71 70
72 .. note:: 71 .. note::
73 72
74 64-bit: Just download and install the 64-bit version of python. 73 64-bit: Just download and install the 64-bit version of python.
75 74
78 77
79 Download pywin32 from: 78 Download pywin32 from:
80 http://sourceforge.net/projects/pywin32/files/ 79 http://sourceforge.net/projects/pywin32/files/
81 80
82 - Click on "pywin32" folder 81 - Click on "pywin32" folder
83 - Click on the first folder (in this case, Build 217, maybe newer when you try) 82 - Click on the first folder (in this case, Build 218, maybe newer when you try)
84 - Choose the file ending with ".win32-py2.x.exe" -> x being the minor 83 - Choose the file ending with ".win32-py3.x.exe" -> x being the minor
85 version of Python you installed (in this case, 7) 84 version of Python you installed (in this case, 7)
86 When writing this guide, the file was: 85 When writing this guide, the file was:
87 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/pywin32-217.win32-py2.7.exe/download 86 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win-amd64-py3.8.exe/download
88 87
89 .. note:: 88 .. note::
90 89
91 64-bit: Download and install the 64-bit version. 90 64-bit: Download and install the 64-bit version.
92 At the time of writing you can find this at: 91 At the time of writing you can find this at:
93 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win-amd64-py2.7.exe/download 92 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win-amd64-py3.8.exe/download
94 93
95 Step 4 -- Python BIN 94 Step 4 -- Python BIN
96 ^^^^^^^^^^^^^^^^^^^^ 95 ^^^^^^^^^^^^^^^^^^^^
97 96
98 Add Python BIN folder to the path 97 Add Python BIN folder to the path
115 Open a CMD and type:: 114 Open a CMD and type::
116 115
117 SETX PATH "%PATH%;[your-python-path]" /M 116 SETX PATH "%PATH%;[your-python-path]" /M
118 117
119 Please substitute [your-python-path] with your Python installation path. 118 Please substitute [your-python-path] with your Python installation path.
120 Typically: C:\\Python27 119 Typically: C:\\Python38
121 120
122 Step 5 -- Kallithea folder structure 121 Step 5 -- Kallithea folder structure
123 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 122 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124 123
125 Create a Kallithea folder structure 124 Create a Kallithea folder structure
137 C:\Kallithea\Repos 136 C:\Kallithea\Repos
138 137
139 Step 6 -- Install virtualenv 138 Step 6 -- Install virtualenv
140 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 139 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
141 140
142 Install Virtual Env for Python
143
144 Navigate to: http://www.virtualenv.org/en/latest/index.html#installation
145 Right click on "virtualenv.py" file and choose "Save link as...".
146 Download to C:\\Kallithea (or whatever you want)
147 (the file is located at
148 https://raw.github.com/pypa/virtualenv/master/virtualenv.py)
149
150 Create a virtual Python environment in C:\\Kallithea\\Env (or similar). To 141 Create a virtual Python environment in C:\\Kallithea\\Env (or similar). To
151 do so, open a CMD (Python Path should be included in Step3), navigate 142 do so, open a CMD (Python Path should be included in Step3), and write::
152 where you downloaded "virtualenv.py", and write:: 143
153 144 python3 -m venv C:\Kallithea\Env
154 python2 virtualenv.py C:\Kallithea\Env
155
156 (--no-site-packages is now the default behaviour of virtualenv, no need
157 to include it)
158 145
159 Step 7 -- Install Kallithea 146 Step 7 -- Install Kallithea
160 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 147 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
161 148
162 Finally, install Kallithea 149 Finally, install Kallithea