Work
Travel
Various
Python Notes
Environment
To define and use a new python environment, and install particular packages, see the following couple of examples:
Meson
python3 -m venv ~/venv/meson
source ~/venv/meson/bin/activate
pip install 'meson @ git+https://github.com/mesonbuild/meson.git'
meson --version
Pyvista
python3 -m venv ~/venv/pyvista/
source ~/venv/pyvista/bin/activate
pip install pyvista vtk pyqt6 pyvistaqt
- To exit from the python environment:
deactivate - To list all the installed packages:
pip list - To update the installed packages:
pip install --upgrade pip - To uninstall a package:
pip uninstall <package_name>