Closed hayleyhu closed 3 months ago
sudo apt-get install python3.10-dev resolved.
/home/hayley/punica/.venvs/venv310/lib/python3.10/site-packages/torch/include/torch/csrc/python_headers.h:12:10: fatal error: Python.h: No such file or directory 12 | #include <Python.h> | ^~~~~~~~~~ compilation terminated.
Looks like you don't have Python headers. If you are using system python, install python3-dev
on Ubuntu or similar packages on other distro. However, here's my recommendation:
mamba create py310 python=3.10
mamba activate py310
sudo apt-get install python3.10-dev resolved.
Great! Glad that you worked it out!
Following the instruction for BUILD FROM SOURCE
gcc --version 9.4.0
/usr/local/cuda/bin/nvcc --version Built on Tue_Aug_15_22:02:13_PDT_2023 Cuda compilation tools, release 12.2, V12.2.140 Build cuda_12.2.r12.2/compiler.33191640_0
ninja --version 1.11.1.git.kitware.jobserver-1
and
import torch print(torch.version) 2.2.1+cu121