Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update faqs on pytorch compatibility on Windows avoiding to uninstall openmp #1722

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/faqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ If you are on Windows and you obtain an error message like:
OSError: [WinError 182] The operating system cannot run %1. Error loading "D:\miniforge\envs\robsub\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
~~~

when trying to load `import torch`, then probably you have both `openmp` and `intel-openmp` installed in your conda environment. To fix your pytorch installation, just run:
when trying to load `import torch`, then probably you have both `openmp` and `intel-openmp` installed in your conda environment, and they both install files with the same name.
To fix your pytorch installation you need to ensure that the files from `intel-openmp` are used, to do so you can run:

~~~
conda uninstall openmp
conda install intel-openmp --forge-reinstall
conda install intel-openmp --force-reinstall
~~~

Note that this procedure can create problem when installing ipopt-related software. This will be probably be solved once conda-forge migrates to a modern fortran compiler on Windows, see https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/1359 for more infomation.
This will be probably be solved once conda-forge migrates to a modern fortran compiler on Windows, see https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/1359 for more infomation.
Loading