Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pythonnet clr is not recognized in jupyter notebook

I have installed pythonnet to use clr package for a specific API, which only works with clr in python. Although in my python script (using command or regular .py files) it works without any issues, in jupyter notebook, import clr gives this error, ModuleNotFoundError: No module named 'clr'. Any idea how to address this issue?

like image 532
c.Parsi Avatar asked May 22 '26 20:05

c.Parsi


1 Answers

Here is simple suggestion: compare sys.path in both cases and see the differences. Your ipython kernel in jupyter is probably searching in different directories than in normal python process.

like image 66
denfromufa Avatar answered May 24 '26 10:05

denfromufa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!