Skip to content

Commit 267fc43

Browse files
peterjc123ezyang
authored andcommitted
Fix Windows doc for import error (#7704)
* Fix Windows doc for import error * Fix doc again * Fix wrong format
1 parent c2fa1f3 commit 267fc43

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

docs/source/notes/windows.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,29 @@ Import error
165165
166166
167167
The problem is caused by the missing of the essential files. Actually,
168-
we include almost all the essential files that PyTorch need except VC2017
169-
redistributable. You can resolve this by typing the following command.
168+
we include almost all the essential files that PyTorch need for the conda
169+
package except VC2017 redistributable.
170+
You can resolve this by typing the following command.
170171

171172
.. code-block:: bat
172173
173174
conda install -c peterjc123 vc vs2017_runtime
174175
176+
As for the wheels package, since we didn't pack the intel-openmp and VS2017
177+
redistributable files in, please make sure you install them manually.
178+
The VS 2017 redistributable installer can be downloaded `here
179+
<https://aka.ms/vs/15/release/VC_redist.x64.exe>`_.
180+
The intel-openmp files can be found at `Anaconda Cloud
181+
<https://anaconda.org/anaconda/intel-openmp/2018.0.0/download/win-64/intel-openmp-2018.0.0-8.tar.bz2>`_.
182+
You will just have to extract this package, put the dll files in `Library\bin`
183+
into a directory and append the path of it to the environment variable `PATH`.
184+
And you should also pay attention to your installation of Numpy. Make sure it
185+
uses MKL instead of OpenBLAS. The offical package of Numpy does the work.
186+
187+
.. code-block:: bat
188+
189+
pip install numpy
190+
175191
Another possible cause may be you are using GPU version without NVIDIA
176192
graphics cards. Please replace your GPU package with the CPU one.
177193

0 commit comments

Comments
 (0)