Im relatively new to coding and have encountered a problem,
When i try to imoort certain modules it comes uo as ‘no module named ’
Allong with trying to install packages manually
Using the packages menu, errors occur
I think it may have something to do with when i was messing with the python shell, it doesnt happen when i open other python types like pygame and turtle
How do i fix this?
@Endie01 , welcome to the forums!
You can try entering
poetry add package into the Shell.
Do note that you’ll have to replace ‘package’ with the name of the package you wish to install.
Hope this helps!
Does the idea I suggested work? If not, could you post the error messages you received?
Yeah that disnt work lol
Also apologise that the wrapping is a bit weird
@Endie01 Could you try entering
pip install mpmath into the Shell?
Ah. There’s the error. Pip is misconfigured.
Since this is a pip configuration error, try:
run in shell:
sed -i 6d .config/pip/pip.conf
really they should have done this the default python template along with a
pip install -U pip, to avoid this error from occurring after pip updates
Then run the
poetry add command again.
Yeah your right, but when i input that this error occurs:
Huh. That’s weird. What template are you using?
Very, im using the regular python template
That’s strange given some of the output. Could you try on a fresh Repl and see if the issue persists?
you’re using the Beta template. I don’t know what got you to having
pip installed in replspace, but try after you run in Shell:
rm .pythonlibs -r
poetry remove poetry
poetry add mpmath
How strange, it worked! Thank you
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.