[英]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. 创建虚拟环境时,它继承了Windows计算机上当前存在的所有环境变量。 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?
如何在虚拟环境中更改环境变量?
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.
重新启动终端可以解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.