Skip to content
Home ยป powershell


Set environment variables in a Python venv (Windows)

This is a brief overview of the possibilities for setting environment variables in a virtual environment (venv). Set environment variables in Python code Environment variables can be set inside your Python script. All child processes will inherit the environment variables and their values. Set environment variables in activate.bat or activate.ps1… 

Solved: “running scripts is disabled on this system” in PowerShell

Since I intensively started using Visual Studio Code across my devices, with PowerShell as my main terminal, I started running into the following error quite a lot: <file> cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/ What’s happening here, is… 

Creating a GCP Service Account and linking it to your system

When you haven’t gone through the Google Cloud Platform authentication process in your development environment, you might run into the following error message. In this blog post, I explain how you can solve it. google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the… 

What to do when Python is not recognized as an internal or external command

  • by
  • 2 min read

One of the main reasons I prefer R(Studio) over Python for doing data science in a context of business intelligence is the ease and stability of the workspace: no virtual environments to maintain since most popular libraries have matured. An update once a year suffices. Yet I acknowledge Python is… 

Using Python in Azure Functions

  • by
  • 2 min read

Recently, I jumped on the serverless hype train. I basically sold my soul to Microsoft and Azure, so the possibility of running Python in Azure Functions is pretty damn cool. But since it’s still in preview mode (beta), it has proven to be a nerve-wrecking experience. Here’s some brief instructions…