Skip to main content

Chama Installation - Windows

System Requirements

  • Windows 10 and 11
  • Python 3.6 or later
    • pip
    • virtualenvwrapper-win

Walkthrough

Prepare Python Environment

  1. Install virtualenv pip package: pip install virtualenvwrapper-win
  2. 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).

  1. Visit this URL: Visual C++ Downloads
  2. Download and install both the x86 and x64 installers.

Install GLPK

  1. Download GLPK source code and compilation batch files from the following URL: Win GLPK
  2. Use a tool such as 7-Zip to extract the downloaded file's contents to a directory such as C:\glpk-4.65 (preferred) or C:\Program Files\glpk-4.65 (if you don't have admin permissions).
  3. Navigate into the ./glpk-4.65/w64 directory.
  4. Open a command prompt here.
  5. Run the Build_GLPK_with_VC14_DLL.bat file. If the build fails because it can't find the file "vcvarsall.bat", then open the Build_GLPK_with_VC14_DLL.bat file and modify the set HOME line to point at the proper location containing "vcvarsall.bat". If you have VS 2022, this path might be C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build
  6. After the build succeeds, add the w64 path to your System Path environment variable (not User Path).

Finish Configuring Python Environment

  1. Change directory into the chama22/chama_django directory.
  2. Ensure the environment is activated: workon chama
  3. Install requirements: pip install -r requirements.txt