i typed pip install findListInList,
and poetry add findListInList.
It all succeeded, but, when i tried import findListInList, it said: no module named ‘findListInList’
i typed pip install findListInList,
and poetry add findListInList.
It all succeeded, but, when i tried import findListInList, it said: no module named ‘findListInList’
Can you provide the repl link?
This screenshot is taken from your repl, opening the directory containing the externally installed package (idk what it’s called so let’s call them this way for now)
To import the findListInList
module into your repl, you need to add this line to your python file:
import findlist
You will not be able to call the find
function from this module, because in the file __init__.py
the find
function has not been created or imported.
If you are the author of this module, add to __init__.py
file this line of code:
from findlist.finder import find
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.