Build any python version for venv

From JoBaPedia
Revision as of 00:21, 3 February 2023 by Joachim (talk | contribs) (Created page with "= Build Python = == Optional Prerequisites == Most should be there, check https://devguide.python.org/getting-started/setup-building/index.html#install-dependencies for details zypper in tk-devel sqlite3-devel gdbm-devel readline6-devel == User Build == ver=3.11.1 cd wget -O- https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz | tar xf - cd Python-3.11.1 mkdir run ./configure --enable-optimizations --prefix=$PWD/run make -j8 make install == Use T...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Build Python

Optional Prerequisites

Most should be there, check https://devguide.python.org/getting-started/setup-building/index.html#install-dependencies for details

zypper in tk-devel sqlite3-devel gdbm-devel readline6-devel

User Build

ver=3.11.1
cd
wget -O- https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz | tar xf -
cd Python-3.11.1
mkdir run
./configure --enable-optimizations --prefix=$PWD/run
make -j8
make install

Use The Build

run/bin/python3 --version
run/nin/python3 -m venv /new/env/path
. /new/venv/path/bin/activate