Troubleshooting
Here are some common errors and how to solve them.
First thing first, please make sure that the requirements.txt only contains these packages:
# Core Packages
numpy
pandas
matplotlib
seaborn
scipy
# Machine Learning
scikit-learn
# Data Processing & Analysis
sqlalchemyTry creating the environment and downloading the dependency again Create a Virtual Environment
Error: ExecutionError

(Also as known as: Running scripts is disabled / Ausführung von Skripts auf diesem System deaktiviert)
To solve this issue, follow these steps:
Open PowerShell as Administrator:
Right-click on the Windows Start menu.
Select Windows PowerShell (Admin) or PowerShell (Admin).
Check the current Execution Policy: Enter this command and press Enter:
Get-ExecutionPolicyIf it shows Restricted, that means script execution is disabled.
Change the Execution Policy temporarily: To allow the script to run, enter this command and press Enter:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserType Y when prompted. (or J in German)
This change is applied only for the current user and allows running locally created scripts.
Activate your virtual environment: Now try to activate it again:
.\venv\Scripts\Activate or .\venv\Scripts\activate
Error: pip: command not found
Cause:
pipis not installed or not linked to Python's PATH.
Solution:
Check pip installation:
python -m pip --versionIf not installed, install it:
python -m ensurepip --upgradeIf still not recognized, reinstall pip:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.pyIf path issues persist, add to PATH manually:
setx PATH "%PATH%;C:\Users\<YourUsername>\AppData\Local\Programs\Python\Python39\Scripts"Restart your terminal and verify:
pip --version
Error: ModuleNotFoundError After Activation
Error Message:
ModuleNotFoundError: No module named 'pandas'Cause:
Dependencies are not installed inside the virtual environment.
Solution:
Ensure the environment is activated:
.\venv\Scripts\Activate # Or .\venv\Scripts\activateInstall your dependencies:
pip install pandas
Error: ExecutionError
Error Message:
permission denied: ./venv/bin/activateCause:
The
activatescript does not have execution permissions.
Solution:
Navigate to your project directory:
cd path/to/your/projectGive execute permissions to the
activatescript:chmod +x venv/bin/activateActivate the environment:
source venv/bin/activate
Tip: Resetting VS Code helps in some cases:
If you don't see some of the options in the guide, despite having done everything, try reseting VS Code by turning it off and on again.
If you have installed Git but cannot see some option
If you have created a virtual environment but cannot find it
Last updated