$ pgrep bin/code # or some other graphical application
1234
$ cat /proc/1234/environ | tr '\0' '\n' | grep -E '^PATH='
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
If the the directory is not in there, you need to add it in your session startup script, in a way that depends on your desktop environment:
Refs: #22810
Complexity: 4
Authors: @flying-sheep, @karrtikr
Create Issue
using the GUI installers on macOS or windows
using your system package manager on Arch Linux or Fedora
using
pipx install Hatchon other Linux distributions. Please make sure you set your PATH correctly in this case.Setting PATH on Linux
If you cannot install Hatch system-wide, you might need to add
$HOME/.local/binto your PATH environment variable for your graphical session, not just your terminal. Check like this:If the the directory is not in there, you need to add it in your session startup script, in a way that depends on your desktop environment:
dependencies:hatch run ..., e.g.hatch run python -V(there is no configuration necessary for Hatch to work in a simple case like this)testprojas an interpreter using Python: Select Interpreter commandpython.terminal.activateEnvironmentsetting set totrue, the environment should be activated:Run
pip -Vand compare if the path starts with the path displayed byhatch env find(pip’s contains an additionallib/pythonX.YZ/site-packages/pip)