Install Python & Argparse in HMIBSC
Posted: June 2nd, 2022, 5:49 pm
If you wish to use Modbus-Read nodes you might run into trouble with Python out of date when trying to download from npm repository. Here is how to update Python.
1) Download python from our repository:
2) Make a new directory Python with command and into it.
3) Untar this file
4) Check new directory has been created with and into this new folder.
5) Configure the package
6) Make & Build (This will take a long time)
7) Reboot
INSTALL ARGPARSE
8) Make a new directory and download argparse
1) Download python from our repository:
Code: Select all
wget -U 'Mozilla' emaxcontrol.com/files/hmibsc/Python-3.10.5.tgz
Code: Select all
mkdir
Code: Select all
cd Python-3.10.5
3) Untar this file
Code: Select all
tar -xf Python-3.10.5.tgz
Code: Select all
dir
Code: Select all
cd
5) Configure the package
Code: Select all
./configure
Code: Select all
make
make install
INSTALL ARGPARSE
8) Make a new directory and download argparse
Code: Select all
mkdir argparse
Code: Select all
cd argparse
Code: Select all
curl -JLO https://files.pythonhosted.org/packages/18/dd/e617cfc3f6210ae183374cd9f6a26b20514bbb5a792af97949c5aacddf0f/argparse-1.4.0.tar.gz
Code: Select all
tar -xf argparse-1.4.0.tar.gz
Code: Select all
cd argparse-1.4.0
Code: Select all
python3 setup.py install