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
sqlalchemy

Try creating the environment and downloading the dependency again Create a Virtual Environment

chevron-rightError: ExecutionErrorhashtag

(Also as known as: Running scripts is disabled / Ausführung von Skripts auf diesem System deaktiviert)

To solve this issue, follow these steps:

  1. Open PowerShell as Administrator:

    • Right-click on the Windows Start menu.

    • Select Windows PowerShell (Admin) or PowerShell (Admin).

  2. Check the current Execution Policy: Enter this command and press Enter:

Get-ExecutionPolicy

If it shows Restricted, that means script execution is disabled.

  1. Change the Execution Policy temporarily: To allow the script to run, enter this command and press Enter:

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
    • Type Y when prompted. (or J in German)

    • This change is applied only for the current user and allows running locally created scripts.

  2. Activate your virtual environment: Now try to activate it again:

    .\venv\Scripts\Activate
    
    or
    .\venv\Scripts\activate
chevron-rightError: pip: command not foundhashtag

Cause:

  • pip is not installed or not linked to Python's PATH.

Solution:

  1. Check pip installation:

    python -m pip --version
  2. If not installed, install it:

    python -m ensurepip --upgrade
  3. If still not recognized, reinstall pip:

    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    python get-pip.py
  4. If path issues persist, add to PATH manually:

    setx PATH "%PATH%;C:\Users\<YourUsername>\AppData\Local\Programs\Python\Python39\Scripts"
  5. Restart your terminal and verify:

    pip --version
chevron-rightError: ModuleNotFoundError After Activationhashtag

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\activate
  • Install your dependencies:

    pip install pandas
circle-info

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