Open viper3-2021-lol-champion opened 2 weeks ago
did you also do this?
In fact, when I uninstall onnxruntime, there will be a new error
Did you follow the full instruction? You have to do the next command as well which is to install the onnxruntime-gpu==1.16.3
In my third image, you can see that I have installed onnxruntime-gpu 1.16.3. In fact, before our conversation, I had already installed both onnxruntime 1.18 and onnxruntime-gpu 1.16.3 in the library. After our first discussion, I uninstalled onnxruntime 1.18 and ran the program again, which resulted in an error. I have provided a screenshot of the error." This photo is a screenshot of the packages that are currently installed in my virtual environment
Just ran it again and encountered the same error: AttributeError: module 'onnxruntime' has no attribute 'InferenceSession'
Did you follow the full instruction? You have to do the next command as well which is to install the onnxruntime-gpu==1.16.3
I tried to run this on Ubuntu 24.04 (python 3.12.3) and it can't be found:
ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.16.3 (from versions: 1.17.0, 1.17.1, 1.18.0, 1.18.1, 1.19.0)
ERROR: No matching distribution found for onnxruntime-gpu==1.16.3
Please check the recommended version of python on the readme ☺️
My CUDA version is 11.8, and the cuDNN version is 8.5. When I installed CUDA and cuDNN, I tested them and found no issues. The tests included running the commands: set cuda, "deviceQuery.exe", and "bandwidthTest.exe". What's even stranger is that I could use CUDA around noon, but after I re-downloaded the two installation packages, I could no longer use CUDA. (Windows 11)