This guide explains how to install Python and the required dependencies to run the Digital Communication Modulation Simulations.
Ensure you have Python 3 and pip installed.
Download and run the official Python installer (pip is included automatically):
https://www.python.org/downloads/
Once Python is installed, proceed to Step 2.
sudo apt install python3sudo apt install python3-pipsudo apt install python3-full python3-venv -yEnsure you are in the project directory where your Python files will be stored.
python3 -m venv venvsource venv/bin/activateNote: On Linux, you should use a virtual environment when installing non-Debian Python packages.
Install the required Python packages:
pip install numpy scipy matplotlibIf your simulations also require scikit-learn, install it as well:
pip install scikit-learnAlternatively, install everything in one command:
pip install numpy scipy matplotlib scikit-learnRun the following command:
python -c "import numpy; import scipy; import matplotlib; print('All good!')"If the output is:
All good!
your installation was successful.
Every time you open a new terminal, you must reactivate the virtual environment before running the simulations:
source venv/bin/activate