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

Question about installation from pre-built binaries #1179

Open
sebffischer opened this issue Jul 1, 2024 · 4 comments
Open

Question about installation from pre-built binaries #1179

sebffischer opened this issue Jul 1, 2024 · 4 comments

Comments

@sebffischer
Copy link
Collaborator

sebffischer commented Jul 1, 2024

The installation guide mentions that it is possible to install torch from pre-built binaries on linux, but when following the installation instructions, I get:

install.packages("torch", type = "binary")
Error in install.packages("torch", type = "binary") : 
  type 'binary' is not supported on this platform

Does this only work on specific linux distributions or should this work in general?
I get the same results on CentOS 7 and Ubuntu 22.04

@sebffischer
Copy link
Collaborator Author

So the problem is that .Platform$pkgType shows "source"

@dfalbel
Copy link
Member

dfalbel commented Jul 2, 2024

I recently updated this to type="binary" unaware of this error on Linux.
If you do install.packages("torch") after setting up the repository, you should get the pre-built binaries anyway in all platforms.

@sebffischer
Copy link
Collaborator Author

Thanks for the quick response! :) What do you think abou trunning the installation instructions in the CI to ensure that they are working?

@dfalbel
Copy link
Member

dfalbel commented Jul 2, 2024

I think that would be nice, although they shouldn't change much.
I don't remember why I did this change 547b564 unfortunatelly.

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

2 participants