AddReference doesn't display on pycharm

45 Views Asked by At

I want to use a dll from C# in my python script, using clr and AddReference.

After importing clr, I can't use AddReference attribute (screenshot). But when I do print( dir(clr)), it shows me the attribute AddReference (screenshot).

I tried to Install .NET on my notebook:

hier a screenshot after running my code enter image description here

  • add new folder
  • pip uninstall clr then pip install pythonnet
0

There are 0 best solutions below