Are you launching a jupyter lab
instance from the activated environment or just selecting the “kernel” for that environment? The latter does not actually activate the environment and therefore does not set environment variables: Proper activation of conda env when working with kernels · Issue #12544 · jupyterlab/jupyterlab · GitHub