Hi,
I would like to install pyoptix on Windows 10, I cloned the otk_pyoptix repo and followed the installation guide on Windows CMD terminal:
I created a conda environment:
conda create -n pyoptix-windows python numpy conda-forge::cupy pillow pytest
Activated it:
conda activate pyoptix-windows
Installed pynvrtc:
pip install pynvrtc
Set the PYOPTIX_CMAKE_ARGS environment variable:
set "PYOPTIX_CMAKE_ARGS=-DOptiX_INSTALL_DIR=C:\ProgramData\NVIDIA Corporation\OptiX SDK 8.0.0"
(I just added quotes to deal with spaces)
I then went in optix\
folder and installed the package using:
pip install .
(because python setup.py install
is deprecated.)
Which succesfully installed the package in both cases.
Then when I want to run hello.py
using python hello.py
, I have the following error message:
Traceback (most recent call last):
File "H:\otk-pyoptix\examples\hello.py", line 8, in <module>
import optix
ImportError: DLL load failed while importing optix: The specified module could not be found.
To be sure that it’s not coming from right permissions, I tried to copy the OptiX SDK 8.0.0\
folder in in my C:\Temp\ folder, update the PYOPTIX_CMAKE_ARGS variable and reinstalled pyoptix, but it does not changed anything.
I am already using pyoptix with OptiX 8.0.0 on Linux and it works well, so I supposed it doesn’t come from the OptiX version.
I also tried using python setup.py install
instead but it does not change anything.
I even tried to create an optix path without spaces but same problem.
And echo %PYOPTIX_CMAKE_ARGS%
is printing well the optix path, with or without spaces.
I don’t know what I could miss from the guide,
thank you in advance for your help.