Hi,
Andy Tai <[email protected]> writes: > Hi, I have a question about python under GNU Guix. I am not a > frequent python user. > Supposedly Guix sets this environment variable GUIX_PYTHONPATH for > python library search paths, like say PATH for the paths for searching > for binary executable in a Guix profile. Yes, these are search paths and they are set as environment variables in a shell. With search paths, there are two kinds of packages, a. there is a package that provides the search path, b. there is a package that activates the search path. The package that provides the search path is saying so in its definition, and in case of python packages, it's `python`. And it provides search path pointing to lib/python3.11/site-packages folder. The packages that do activate it are all packages that provide files under what the search path point to. So in this case all packages with files under lib/python3.11/site-packages. You need both of these packages in the profile to actually get the search path and activate it. > > However, when I do > > guix shell --pure python-numpy So it should be guix shell --pure python pyton-numpy. > > I expect to see GUIX_PYTHONPATH defined. But I don't see it. Is > this expected? Yes. Rutherther
