Python3-Portable
- Download one of many cpython3-portable-builds
- Extract zst-archive by
unzstd ZST-FILE. You get a tar-file. - Extract tar-file by
tar -xf TAR-FILE. You get a folder named python. -
Move to python/install/lib/python3.x/ (depending on your choice of Python-version), open site.py and change following two variables:
python/install/lib/python3.12/site.pyENABLE_USER_SITE = True USER_SITE = ''Now the site-packages of your portable Python3 won't conflict with the site-packages of the OS anymore.
-
To install new Python-packages move to
python/install/bin/and run following Terminal-Command:Terminal (python/install/bin/)./pip3 install PACKAGE