-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find Windows version by calling 'ver' #3359
Comments
I encountered the same issue:
After a slight research, the official Microsoft documentation states that the Fortunately, Microsoft suggests another official way to obtain the Windows version in PowerShell by going through:
There are tons of ways to obtain the System version: https://stackoverflow.com/questions/7330187/how-to-find-the-windows-version-from-the-powershell-command-line After a brief inspection, I found that the issue was introduced to mamba by #3248 after Mar 28 with this line: mamba/libmamba/src/util/os_win.cpp Line 194 in 3275347
The workaround should be running the following command in CMD:
dedicated. So the better approach to this Pull Request would be to have mamba/libmamba/src/util/os_win.cpp Line 194 in 3275347
ver for CMD as well as using $PSVersionTable.BuildVersion in PowerShell.
I am not a CPP expert, I could help on contributing the fix by adding extra functions to handle the cases, but may need maintainers helps. EDIT1: Nevermind, I found the init functionality is broken too no matter running with:
or what I mentioned:
EDIT2: I am lost, running directly in CMD is broken too. I am switching to Linux to try again...
|
Unfortunately that's not always accurate. In my test system I get:
I'm standardizing this at conda/ceps#103 and it was a bit more complicated than I thought. It does look like |
Troubleshooting docs
Anaconda default channels
How did you install Mamba?
Micromamba
Search tried in issue tracker
type::bug
Latest version of Mamba
Tried in Conda?
Not applicable
Describe your issue
I receive that bug;
conda was not installed on my computer
Shell Ver: PowerShell 7.4.3
System Ver: Microsoft Windows [Ver 10.0.19045.4651]
Discrabe
Please file a bug report.
that command the found in powershell
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
and run cmd /c ver
mamba info / micromamba info
Logs
No response
environment.yml
No response
~/.condarc
No response
The text was updated successfully, but these errors were encountered: