Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error #167

Closed
danpovey opened this issue Sep 21, 2020 · 8 comments
Closed

Build error #167

danpovey opened this issue Sep 21, 2020 · 8 comments

Comments

@danpovey
Copy link
Collaborator

-- Found PythonInterp: /home/linuxbrew/.linuxbrew/bin/python3.8 (found version "3.8.5")
-- Found PythonLibs: /home/linuxbrew/.linuxbrew/opt/python@3.8/lib/libpython3.8.so
-- pybind11 v2.5.0
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'torch'
CMake Error at cmake/torch.cmake:10 (find_package):
By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Torch", but
CMake did not find one.

Could not find a package configuration file provided by "Torch" with any of
the following names:

TorchConfig.cmake
torch-config.cmake

Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set
"Torch_DIR" to a directory containing one of the above files. If "Torch"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:100 (include)

-- Configuring incomplete, errors occurred!
See also "/home/storage06/dpovey/k2/build/CMakeFiles/CMakeOutput.log".
See also "/home/storage06/dpovey/k2/build/CMakeFiles/CMakeError.log".

@danpovey
Copy link
Collaborator Author

maybe I just need to install torch...

@csukuangfj
Copy link
Collaborator

Yes, you are right. All you need is pip install torch.

You can disable PyTorch by using

cd build
cmake -DUSE_PYTORCH=OFF ..

@danpovey
Copy link
Collaborator Author

danpovey commented Sep 21, 2020 via email

@csukuangfj
Copy link
Collaborator

Tsinghua provides a mirror that can be accessed faster inside China.

https://pypi.tuna.tsinghua.edu.cn/simple/torch/ contains *.whl for various versions of PyTorch.

I guess torch-1.6.0-cp38-cp38-manylinux1_x86_64.whl is what you want.

@qindazhu
Copy link
Collaborator

+1 for Tsinghua mirror. @danpovey you can add Tsinghua mirror as the default channel for pip, it will be much faster than the default.

pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

@danpovey
Copy link
Collaborator Author

danpovey commented Sep 21, 2020 via email

@danpovey
Copy link
Collaborator Author

danpovey commented Sep 21, 2020 via email

@qindazhu
Copy link
Collaborator

Then it must be the issue of Xiaomi network... I could get Torch in 3 minutes at home..

Yeah that is the source I am using but it is too slow. Could be our network is the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants