import "System" could not be resolved - Pythonnet [duplicate]
I have an issue that has been discussed in some github blogs but the answers there are so confusing and complex that I thought to ask here as well. Before asking, let me just say I'm not an expert programmer, so my apologizes if mine is a simple question. - I recently had to install python 3.7 - I used to have modules like clr and System working totally fine and now everything seems broker. I use Anaconda/Spyder to simply load the packages clr and System and Python gives me the following error messages:
No module named 'clr'
No module named 'System'
I managed to fix (apparently) the clr issue by running
pip install clr
from Anaconda Prompt. However, in order to fix the issue with the System module, it seems I need to install pythonnet (I don't knoww exactly what it is but I guess it doesn't matter). Based on anaconda official website: https://anaconda.org/pythonnet/pythonnet I should simply run:
conda install -c pythonnet pythonnet
but that doesn't work. My extremely limited understanding is that something is going wrong between Pythonnet and Python 3.7. Does anybody have a clue of what I should do? Many thanks
you must uninstall first clr and then do pip install pythonnet. pythonnet has clr and System.
check documentation: https://github.com/pythonnet/pythonnet