Skip to content

TIL

25-06-25 - Today I Learned...

I learned the hard way that you should run your python and AI projects in a virtual environment so they don't create problems with other dependencies. python -m venv env with env as the name for the environment.

To run the environment you write env\Scripts\activate.bat or env\Scripts\activate.

With deactivate we simply can deactivate the virtual environment.

The packages and dependencies that we used in the environment we then can save in a requirements.txt file so if somebody else uses the project they can download themselves without us sending the dependencies. pip freeze > requirements.txt

25-06-25 - Today I Learned...

Today I learned again how to set the right path for your python version.

  1. Find the Python installation path.

  2. Add the Path to Windows:

  3. Win+R and sysdm.cpl to open the system window.
  4. Go to Advanced Tab and Environment Variables
  5. Under System Variables find Path -> Edit
  6. New and add the path to your Python
  7. Also add the path to the Scripts folder in the python folder.

  8. Restart terminal