Recent Changes · Search:

Dispense


µSR

Chapters:

  1. Introduction
  2. The muon
  3. Muon production
  4. Spin polarization
  5. Detect the µ spin
  6. Implantation
  7. Paramagnetic species
  8. A special case: a muon with few nuclei
  9. Magnetic materials
  10. Relaxation functions
  11. Superconductors
  12. Mujpy
  13. Mulab
  14. Musite?
  15. More details

Tips

PmWiki

pmwiki.org

edit SideBar

Mujpy

< How to recompile the *load.mex* routines | Index | Installation instructions >


  • physically mujpy is here (github).
  • Documentation on mujpy at ReadTheDocs
  • Personal running notes here
  • From now on use pipx install xxx to install globally python package xxx outside debian distribution
  • XPS 9340 installation
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
&#9584;&#9472;> 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 >

Edit - History - Print - PDF - Recent Changes - Search
Page last modified on November 11, 2024, at 09:02 AM