'Installing thundersvm on Colab instance
Wanted to experiment thundersvm on Google Colab instance, so I try to install:
pip install thundersvm
Collecting thundersvm
Downloading thundersvm-0.3.12-py3-none-any.whl (507 kB)
|████████████████████████████████| 507 kB 7.5 MB/s
Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (from thundersvm) (1.19.5)
Requirement already satisfied: scipy in /usr/local/lib/python3.7/dist-packages (from thundersvm) (1.4.1)
Requirement already satisfied: scikit-learn in /usr/local/lib/python3.7/dist-packages (from thundersvm) (0.22.2.post1)
Requirement already satisfied: joblib>=0.11 in /usr/local/lib/python3.7/dist-packages (from scikit-learn->thundersvm) (1.1.0)
Installing collected packages: thundersvm
Successfully installed thundersvm-0.3.12
installing the python wheel
pip install thundersvm-cu90-0.2.0-py3-none-linux_x86_64.whl
WARNING: Requirement 'thundersvm-cu90-0.2.0-py3-none-linux_x86_64.whl' looks like a filename, but the file does not exist
Processing ./thundersvm-cu90-0.2.0-py3-none-linux_x86_64.whl
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/content/thundersvm-cu90-0.2.0-py3-none-linux_x86_64.whl'
but then
ls
sample_data/ thundersvm-cpu-0.2.0-py3-none-linux_x86_64.whl
pwd
'/content'
full file path
pip install content/thundersvm-cu90-0.2.0-py3-none-linux_x86_64.whl
WARNING: Requirement 'content/thundersvm-cu90-0.2.0-py3-none-linux_x86_64.whl' looks like a filename, but the file does not exist
Processing ./content/thundersvm-cu90-0.2.0-py3-none-linux_x86_64.whl
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/content/content/thundersvm-cu90-0.2.0-py3-none-linux_x86_64.whl'
Solution 1:[1]
Due to a different version of CUDA on Google Colab, when you use !pip install thundersvm, it will not work because thundersvm uses CUDA version 9. Luckily, there's an article on Medium (https://medium.com/analytics-vidhya/how-to-install-and-run-thundersvm-in-google-colab-de1fe49eef85) with step-by-step guide on how to install thundersvm on Google Colab. I tested and it worked.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | hchen98 |
