-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
high prioritymodule: binariesAnything related to official binaries that we release to usersAnything related to official binaries that we release to usersmodule: regressionIt used to work, and now it doesn'tIt used to work, and now it doesn'tmodule: windowsWindows support for PyTorchWindows support for PyTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🐛 Describe the bug
PS C:\> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m venv .\test-venv
PS C:\> .\test-venv\Scripts\Activate.ps1
(test-venv) PS C:\> pip install numpy==1.22.4
Collecting numpy==1.22.4
Using cached numpy-1.22.4-cp310-cp310-win_amd64.whl (14.7 MB)
Installing collected packages: numpy
Successfully installed numpy-1.22.4
[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip
(test-venv) PS C:\> pip install torch
Collecting torch
Using cached torch-2.0.0-cp310-cp310-win_amd64.whl (172.3 MB)
Collecting filelock
Using cached filelock-3.12.0-py3-none-any.whl (10 kB)
Collecting jinja2
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting typing-extensions
Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting networkx
Using cached networkx-3.1-py3-none-any.whl (2.1 MB)
Collecting sympy
Using cached sympy-1.11.1-py3-none-any.whl (6.5 MB)
Collecting MarkupSafe>=2.0
Using cached MarkupSafe-2.1.2-cp310-cp310-win_amd64.whl (16 kB)
Collecting mpmath>=0.19
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Installing collected packages: mpmath, typing-extensions, sympy, networkx, MarkupSafe, filelock, jinja2, torch
Successfully installed MarkupSafe-2.1.2 filelock-3.12.0 jinja2-3.1.2 mpmath-1.3.0 networkx-3.1 sympy-1.11.1 torch-2.0.
0 typing-extensions-4.5.0
[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip
(test-venv) PS C:\> python -c 'import torch; torch.tensor([1,2,3]).numpy()'
<string>:1: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of nump
y is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/dev
docs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem . (Trigg
ered internally at ..\torch\csrc\utils\tensor_numpy.cpp:84.)
Traceback (most recent call last):
File "<string>", line 1, in <module>
RuntimeError: Numpy is not available
(test-venv) PS C:\>
Versions
python3.10-win_amd64 wheel
cc @ezyang @gchanan @zou3519 @seemethere @malfet @peterjc123 @mszhanyi @skyline75489 @nbcsm @vladimir-aubrecht
Metadata
Metadata
Labels
high prioritymodule: binariesAnything related to official binaries that we release to usersAnything related to official binaries that we release to usersmodule: regressionIt used to work, and now it doesn'tIt used to work, and now it doesn'tmodule: windowsWindows support for PyTorchWindows support for PyTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Type
Projects
Status
Done