I installed PySpice using pip to a conda environment called myenv. However, when I try to import PySpice on VS Code I get an error that says " ModuleNotFoundError: No module named ‘PySpice’ "
I then tried to download PySpice using conda-forge which was recommended on the official PySpice website, but I’m receiving this message:
What is the version of Python in your conda environment? It looks like the most recent builds on conda-forge are almost 2 years old, and aren’t available for the latest versions of Python.
Right, it’s too up-to-date. From what I see, the pyspice on conda-forge only is available for Pythons up to 3.10. Assuming you don’t need any new features of Python 3.11, you could create an environment using Python 3.10 and try to install pyspice in that. (Note that this will likely not have any effect on the VS Code error, which may have to do with setting up VS Code to recognize/use your conda environment.)
Thank you so much! I did as you said and made a new environment. Also, apparently I wasn’t choosing the right interpreter in VS Code so I fixed that, but now I’m getting an OSError as follows, what could this be?