Chama Installation - Windows
System Requirements
- Windows 10 and 11
- Python 3.6 or later
- pip
- virtualenvwrapper-win
Walkthrough
Prepare Python Environment
- Install virtualenv pip package:
pip install virtualenvwrapper-win - Create a python virtual environment:
mkvirtualenv chama
Install VC14
VC14 is required to build the GLPK source code for Windows. You might be able to skip this step if you already have VC14 (included with Visual Studio 2015 and later).
- Visit this URL: Visual C++ Downloads
- Download and install both the x86 and x64 installers.
Install GLPK
- Download GLPK source code and compilation batch files from the following URL: Win GLPK
- Use a tool such as 7-Zip to extract the downloaded file's contents to a directory such as
C:\glpk-4.65(preferred) orC:\Program Files\glpk-4.65(if you don't have admin permissions). - Navigate into the
./glpk-4.65/w64directory. - Open a command prompt here.
- Run the
Build_GLPK_with_VC14_DLL.batfile. If the build fails because it can't find the file "vcvarsall.bat", then open theBuild_GLPK_with_VC14_DLL.batfile and modify theset HOMEline to point at the proper location containing "vcvarsall.bat". If you have VS 2022, this path might beC:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build - After the build succeeds, add the w64 path to your System Path environment variable (not User Path).
Finish Configuring Python Environment
- Change directory into the chama22/chama_django directory.
- Ensure the environment is activated:
workon chama - Install requirements:
pip install -r requirements.txt