The reason is that NumPy relies on C libraries which were compiled with a specific version of Microsoft Visual Studio (with MSVC compiler). (You could also set a PYTHONPATH variable to an empty folder with numpy copied to it, but I will just go with moving it into Nuke’s site-packages for simplicity.) Original error was: DLL load failed: The specified module could not be found. If you're working with a numpy git repo, try `git clean -xdf` (removes allįiles not under version control). Likely you are trying to import a failed build of numpy. Importing the multiarray numpy extension module failed. C:\Program Files\Nuke11.2v4\pythonextensions\site-packages).īut after doing it you will probably get a compiler mismatch and this error after attempting to “import numpy” in Nuke session: ImportError: So you might try to install Python on Windows, install NumPy with pip and copy numpy folder into Nuke’s site-packages (e.g. Here I will show you a simple way you could expect to work, but it won’t and I will explain why. In this quick tip I will show you how to easily take advantage of Houdini’s NumPy which was compiled with the same compiler as Python in Nuke. Setting up NumPy on Linux is usually just a matter of running “$ pip install numpy”, but on Windows it can get tricky. It contains powerful tools for image processing and is required by some gizmos, e.g. Sometimes it is useful to have NumPy module available in Nuke’s Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |