Error running basic switch commands after installing

19 views
Skip to first unread message

Eddie Dale

unread,
Oct 23, 2023, 2:50:20 PM10/23/23
to Switch Model
Hello Everyone,

My name is Edmund Dale, I'm a solar energy researcher from San Diego CA and I'm very interested in trying out Switch 2.0. I tried installing switch_model using: 

 conda create --name switch -c conda-forge switch_model git  

and using

pip install switch-model

The install seems to work, but when I try to run a basic command like "switch --version" I get the following error (see attached image):
screenshot of install error.png



Matthias Fripp

unread,
Oct 23, 2023, 6:12:07 PM10/23/23
to switch...@googlegroups.com

Hi Edmund,

 

This looks like a problem where Windows Powershell has an internal command called “switch” that conflicts with our
“switch” command. I usually work around this by using the older cmd.exe instead of Powershell (open the Anaconda Prompt instead of Anaconda Powershell Prompt). But if you prefer Powershell, you can use “switch.exe” instead of “switch”, e.g., run “switch.exe --version” or “switch.exe solve”.

 

Matthias

 

From: switch...@googlegroups.com <switch...@googlegroups.com> on behalf of Eddie Dale <edal...@gmail.com>
Date: Monday, October 23, 2023 at 11:50 AM
To: Switch Model <switch...@googlegroups.com>
Subject: [EXTERNAL] [switch-model] Error running basic switch commands after installing

You don't often get email from edal...@gmail.com. Learn why this is important

 

 

 

--
You received this message because you are subscribed to the Google Groups "Switch Model" group.
To unsubscribe from this group and stop receiving emails from it, send an email to switch-model...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/switch-model/3e1d7886-2180-4c63-a97d-b6d43e3bab5dn%40googlegroups.com.

Eddie Dale

unread,
Oct 23, 2023, 6:33:52 PM10/23/23
to switch...@googlegroups.com
Thank you!
That makes a lot of sense. I'll give it a try right now.


Reply all
Reply to author
Forward
0 new messages