I cannot reproduce the issue, as the installation automatically also installs numpy:
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu113/torch_nightly.html
...
Installing collected packages: torch, numpy, torchvision
Successfully installed numpy-1.22.3 torch-1.12.0.dev20220311+cu113 torchvision-0.13.0.dev20220311+cu113
Manually uninstalling numpy reproduces the error:
python -c "import torch; import numpy as np; print(torch.from_numpy(np.random.randn(1)))"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
but re-installing it fixes the issue again:
pip install numpy
Collecting numpy
  Using cached numpy-1.22.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB)
Installing collected packages: numpy
Successfully installed numpy-1.22.3
python -c "import torch; import numpy as np; print(torch.from_numpy(np.random.randn(1)))"
tensor([0.2141], dtype=torch.float64)