You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importosdefmain():
os.system("nvs -v")
os.system("node -v") # now is 12.22.12os.system("nvs use 14") #PATH -= %LOCALAPPDATA%\nvs\default PATH += %LOCALAPPDATA%\nvs\node\14.21.3\x64os.system("node -v") # now is still 12.22.12main()
Failed to switch version
nvs -v :1.7.0
python -v :3.8.5
The text was updated successfully, but these errors were encountered:
Sorry, this kind of out-of-proc use is not supported by nvs.
nvs use modifies PATH environment variable of the shell process that is executing the nvs script. But the python os.system() call creates a new shell process. So environment variable changes made by nvs do not affect the calling python process.
Failed to switch version
nvs -v :1.7.0
python -v :3.8.5
The text was updated successfully, but these errors were encountered: