Add experimental machine learning
This commit is contained in:
committed by
Javi Martín
parent
c8d8fae98d
commit
4d27bbebad
17
app/components/admin/machine_learning/help_component.rb
Normal file
17
app/components/admin/machine_learning/help_component.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class Admin::MachineLearning::HelpComponent < ApplicationComponent
|
||||
private
|
||||
|
||||
def instructions
|
||||
<<~INSTRUCTIONS
|
||||
sudo apt update
|
||||
sudo apt install software-properties-common
|
||||
sudo add-apt-repository ppa:deadsnakes/ppa
|
||||
sudo apt install python3.7
|
||||
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
|
||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||
python get-pip.py
|
||||
sudo update-alternatives --install /usr/bin/pip pip /home/deploy/.local/bin/pip3.7 1
|
||||
pip install pandas
|
||||
INSTRUCTIONS
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user