Hello Tyler,
Thank you for your response. I’m using the Windows 11 distribution of Anaconda installed from the official website (x86_64). My GPU is a 5060 Ti with Driver Version 591.74 and CUDA Version 13.1. I’m also using VS Code as my IDE.
Unfortunately, this still hasn’t resolved the issue. I followed your instructions (except for using Python 3.12), and the output I received was:
InvalidArchiveError("Error with archive C:\Users\jwb20148\AppData\Local\anaconda3\pkgs\pytorch-2.7.0-gpu_cuda128")
I then switched to the installation command provided on the PyTorch website:
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu130
With this approach, I successfully installed PyTorch in the virtual environment. I also conda installed matplotlib, scikit‑learn, pandas, and OpenCV( through conda‑forge.)
Unfortunately, my concerns were correct and there is some conflict now. The kernel now crashes whenever I try to import PyTorch. VS Code reports:
Error:
The Kernel crashed while executing code in the current cell or a previous cell.
Please review the code in the cell(s) to identify a possible cause of the failure.
Click here for more info.
View Jupyter log for further details.
Jupyter log here:
16:17:44.748 [error] Disposing session as kernel process died ExitCode: 3, Reason: OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
At this point I’m unsure how to proceed, so any further guidance would be greatly appreciated.