I am trying to use pythonnet, and to do so import clr to run the following script:
import clr
import sys
# Add reference to a simple .NET assembly
clr.AddReference("System")
from System import String
print(String.Format("Hello, {0}!", "World"))
and i get the following:
Traceback (most recent call last):
File ~anaconda3envsmonsterscope_24libsite-packagesspyder_kernelspy3compat.py:356 in compat_exec
exec(code, globals, locals)
File c:userspickedocumentsaa_amyflexiscope python scriptsstepper stage control - pythonuntitled0.py:8
import clr
File ~anaconda3envsmonsterscope_24libsite-packagesclr.py:5
from pythonnet import load
File ~anaconda3envsmonsterscope_24libsite-packagespythonnet__init__.py:6
import clr_loader
ModuleNotFoundError: No module named 'clr_loader'
pip install clr-loader doesn’t work, but I can’t find anything about this online.