Apologize for the potential obvious question here. I am familiar with C++ but not python.
I am able to build and install pytorch 1.3.0 branch successfully by standard procedures like cmake .., make -j, sudo make install. I am able to link to pytorch for my C++ inference code and everything works as expected. However, I am having trouble getting pytorch to work in python.
import torch

shows error ImportError: No module named torch
When I build pytorch from source, the cmake option BUILD_PYTHON is set to on, so python related stuff should be built and installed.
I also looked into https://pytorch.org/get-started/locally/ 19, and unfortunately the pre-built binaries requires CUDA 10.1 but my environment is currently at CUDA 10.0.
How can I get torch working in python when building from source?