[英]What is the alternative of export from unix to powershell, Set works for CMD only. I need it for powershell
I failed to set-up and run my Django project using PowerShell, I can run and set Django Settings Module from CMD but the same thing is not working for Powershell.
如果您正在尋找永久使用它:
[System.Environment]::SetEnvironmentVariable('var_name','var_value','MACHINE')
如果您正在尋找您在每次運行時設置的內容,請使用:
$env:var_name = 'var_value'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.