47 lines
767 B
Plaintext
47 lines
767 B
Plaintext
# 1st
|
|
# install python interpretor
|
|
sudo add-apt-repository ppa:deadsnakes/ppa -y
|
|
sudo apt update
|
|
sudo apt install python3.10
|
|
|
|
# check version
|
|
python3.10 --version
|
|
|
|
|
|
# 2nd
|
|
# install venv
|
|
sudo apt install python3.10-venv python3.10-distutils -y
|
|
|
|
|
|
# 3rd
|
|
# make venv
|
|
python3.10 -m venv myenv
|
|
|
|
# activate venv
|
|
source myenv/bin/activate
|
|
|
|
|
|
# 4th
|
|
# install pip
|
|
curl -O https://bootstrap.pypa.io/get-pip.py
|
|
wget https://bootstrap.pypa.io/get-pip.py
|
|
sudo python3.10 get-pip.py
|
|
|
|
|
|
# 5th
|
|
# install evdev's dependenncy
|
|
sudo apt install python3.10-dev
|
|
|
|
# install pyautogui's dependency
|
|
sudo apt install python3.10-tk
|
|
|
|
# install dependenncy in venv
|
|
pip install evdev psutil pynput pyautogui
|
|
|
|
|
|
# 6th
|
|
# run python script
|
|
sudo myenv/bin/python3.10 one.py
|
|
|
|
# de-activate venv
|
|
deactivate |