#🔒 python3.13-nogil cannot find modules

12 messages · Page 1 of 1 (latest)

sleek thunder
#

Installed python3.13 from deadsnakes. it cannot seem to find modules installed through pip. Any pointers for debugging this?

vast timberBOT
#

@sleek thunder

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

sleek thunder
#

First thing I notice is that sys.path is different
python3.11
print(sys.path)
['', '/home/merimus/.pyenv/versions/3.11.4/lib/python311.zip', '/home/merimus/.pyenv/versions/3.11.4/lib/python3.11', '/home/merimus/.pyenv/versions/3.11.4/lib/python3.11/lib-dynload', '/home/merimus/.local/lib/python3.11/site-packages', '/home/merimus/.pyenv/versions/3.11.4/lib/python3.11/site-packages']

python3.13
print(sys.path)
['', '/usr/lib/python313.zip', '/usr/lib/python3.13', '/usr/lib/python3.13/lib-dynload', '/usr/lib/python3/dist-packages']

jade veldt
#

you might also have to install python3.13-pip, but I'm not sure.

#

also, I would just always use dashm pip

#

so python3.13 -m pip install ...

sleek thunder
#

$ python3.14 -m ensurepip --upgrade
/usr/bin/python3.14: No module named ensurepip

#

got it...
install python3.13-full

then pip works

#

!close

vast timberBOT
#
Python help channel closed with !close

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.