Error when reloading pyRevit after running 3rd party libraries in CPython

Hi all,

Third-party libraries can be used by installing them locally and adding the site-packages directory to the environment variable PYTHONPATH before launching Revit.

This works perfectly fine after launching. However, after reloading pyRevit I get the following error:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Anyone who faced the same issue and was able to track it down and solve it?

Any help is much appreciated!

A bit be more specific: I encountered it when running Numpy (and libraries build on Numpy like Pandas and Scipy). With other libraries I did not have this problem.