Step-by-Step Setup
-
Install Python 3
- Download and install Python 3 from the official website.
- Ensure it is the latest version by checking the
python3 --versionoutput.
-
Install Required Packages
- Install pip using
python3 -m pip install --user -qThis installs packages in your user directory with no output.
- Update pip packages to the latest version:
- Run
pip3 --upgrade numpyandpip3 --upgrade pandas.
- Run
- Install pip using
-
Access the Python Shell
- Open the Python shell with
python3.
- Open the Python shell with
-
Import Necessary Libraries
- Import NumPy and Pandas:
import numpy as np import pandas as pd
- Import NumPy and Pandas:
-
Run Basic Operations
- Test NumPy:
np.sqrt(2)
- Test Pandas:
pd.Series([1, 2, 3])
- Test NumPy:
-
Verify Installation
- Use
np.sqrtto confirm NumPy is installed.
- Use
-
Update Environment
- For security, consider installing WSL2:
python3 -m wssymdown install wssymdown
- For security, consider installing WSL2:
-
Exit Python
- Press
Ctrl+D(orqif using GUI) to exit.
- Press
-
Practice
- Start with simple commands like
print("Hello, World!")to get familiar with the interpreter.
- Start with simple commands like
Summary
By following these steps, you'll have a basic Python environment set up with NumPy and Pandas, ready for scientific computing tasks.




