Tanner Semerad
Tanner Semerad

Reputation: 12672

Why does my virtualenv inherit the system's old environment variables?

When I created my virtual environment, it inherited all of the environment variables that were currently on my Windows machine. I have since changed many of those variables, and my virtual environment is now stuck with the old values. How can I change the environment variables within my virtual environment?

Upvotes: 1

Views: 1332

Answers (1)

Tanner Semerad
Tanner Semerad

Reputation: 12672

I discovered that the reason my virtual environment's environment variables were keeping their previous values was because I was still in the same terminal session. Restarting my terminal fixed the issue.

Upvotes: 2

Related Questions