Page History
Sv translation | |||||
---|---|---|---|---|---|
| |||||
Installing Python 3.8.12 - Ubuntu 20.04.4 (source pages : https://tecadmin.net/install-python-3-8-ubuntu/ , https://docs.python.org/3/tutorial/venv.html ) IntroductionBellaDati IoT Advance Analytic framework makes possible utilize Machine Learning concepts. There is a possibility to include scripts programmed in Python. Python is a popular programming language. Besides web and software development, Python is used for data analytics, machine learning, and even design. BellaDati except of ML offers also tool IDE (stands for Integrated Development Environment ) usable for editing , checking python language scripts.
Prerequisite
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev Installing Python 3.8.12 from source code
python3 —version response: Python 3.8.10
cd /opt sudo wget https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz
sudo tar xzf Python-3.8.12.tgz
cd Python-3.8.12 ./configure --enable-optimizations make install
reboot
python3.8 —version response: Python 3.8.12 rm /otpopt/Python-3.8.12.tgz ( removing to save storage space) Upgrading pip( pip - A tool for installing and managing Python packages)/usr/local/bin/python3.8 -m pip install --upgrade pip
/usr/local/bin/python3.8 -m pip --version response: Installing pylint and pyflakes(pylint - code analysis for Python, pyflakes is a simple program which checks Python source files for errors.))
which python3.8 response: /usr/local/bin/python3.8 cd /usr/local/bin
ls -all response: python3.8, isort... pip3.8 and many files
python3.8 -m pip install pylint
which pylint response : /usr/local/bin/pylint
pylint —version response : pylint 2.15.5 astroid 2.12.12 Python 3.8.12
( the prcedure is the same as for pylint) python3.8 -m pip install pyflakes which pyflakes pyflakes version response : 2.5.0 Python 3.8.12 on Linux Installing some module(s)(required by used specific python script(s))In this example - specific BellaDati project using Python script The script asked for several modules. The IDE have been used to see errors/warning . The modules needed can be added this way.
python3.8 -m pip list response: Package Version
/usr/local/bin/python3.8 -m pip install pandas response : Collecting pandas
/usr/local/bin/python3.8 -m pip list response:
cd /usr/local/lib/python3.8/site-packages |
...