This guide will help you get the PCA Analysis Tool up and running on your computer, even if you have no programming experience. Please follow these steps carefully.
Python is the programming language this application is built with. You need to install it first. If you think python may be already installed, skip ahead to step 3 and try to verify the installation.
The docs here use
pythonfor Python related commands. On MacOS/Linux devices you’d typically usepython3instead ofpythonfor all python related commands.
.exe file. IMPORTANT: Check the box that says “Add Python to PATH” during installation, and then click “Install Now”..pkg file and follow the on-screen instructions.python --version and press Enter. You should see a version number like Python 3.10.12.PCA Folder:
cd "/path/to/your/GaitVision-main/PCA"
Note for Windows users: Your path will look different, e.g.,
cd "C:\Users\YourUser\Desktop\GaitVision-main\PCA".
💡 Pro Tip: How to Copy a File Path
- On macOS: Right-click on a file or folder, hold down the
Optionkey, and select “Copy [item name] as Pathname”.- On Windows: Hold down the
Shiftkey and right-click on a file or folder, then select “Copy as path”.You can then paste this path directly into the terminal after typing
cd.
This creates a self-contained environment for the application’s dependencies.
python -m venv venv
Activate the Virtual Environment:
Now, activate the environment based on your operating system.
In your terminal, run:
source venv/bin/activate
For simplicity, we recommend using Command Prompt for the following steps.
.\venv\Scripts\activate
.\venv\Scripts\Activate.ps1
Note: If you get an error using PowerShell, you may need to run it as an Administrator and execute the command
Set-ExecutionPolicy RemoteSigned. Using Command Prompt is often easier.
(venv) at the beginning of your Terminal prompt.Now, install the specific libraries the application needs.
pip install -r requirements.txt
python pca_pipeline.py
PCA_Analysis inside your computer’s “Documents” folder.The application will close automatically after the report is generated. You can then close the Terminal window. To use it again, just follow Step 5 and Step 6.
command not found (e.g., python): This usually means Python was not added to your system’s PATH. When installing, make sure to check the box that says “Add Python to PATH”.
pip install fails: