Chapters:
|
MuSR /
Mujpy< How to recompile the *load.mex* routines | Index | Installation instructions >
git clone https://github.com/RDeRenzi/mujpy.git sudo apt install pipx # installs pipx version 1.4.3 to /usr/local/bin recall --global is busted pipx ensurepath # adds ~/.local/bin to path pipx install pipx # installs latest pipx to ~/.local/bin sudo apt purge --autoremove pipx # remove pipx 1.4.3 via apt, and all extra files including autocomplete from /usr/local/binsudo apt install python3-full # recommended by warnings when trying bto install python packages that are not Debian, can only do in venv, what a pain! sudo ~/.local/bin/pipx install pipx --global #installs latest pipx version to /usr/local/bin because --global works. pipx uninstall pipx # remove the local version# need uproot, but @@sudo pip3 install uproot awkward@@ genberates pipx ensurepath # make sure the ~/.local/bin is added to $PATH sudo pipx ensurepath --global # make sure that /usr/local/bin is set to global install pip3 install uproot fails error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. # to use a venv eg -mujpy.env source ~/.mujpy.env/bin/activate pip3 freeze -l # to show what's installed sudo apt install python3-pip sudo apt install python3.12-venv sudo apt install python3-dev python3-pip python3-venv nodejs npm # get anyway warning [W 2024-11-05 12:00:42.127 LabApp] Could not determine jupyterlab build status without nodejs python3 -m venv ~/.mujpy.py # include-system-site-packages = false pip3 install jupyterlab # mujpyu from clone broken because of musr2py not compiling from pip < How to recompile the *load.mex* routines | Index | Installation instructions > |