Question:
I was trying to run my code but there was a problem with “requests”
something like this
Traceback (most recent call last):
File "main.py", line 6, in <module>
import requests, json, random
ModuleNotFoundError: No module named 'requests'
so How can I use that requests feature from python?
help me please…!
Thanks
Repl link:
Or poetry add requests
(this will be more compatible with forking I think). poetry
is the Replit package manager but pip
works as well.
4 Likes
Or just open a Packager
tab in the editor and install requests
, the way replit intended.
@CoderElijah,
Or upm add requests
(this will also be more compatible with replit I think). upm
is THE Replit package manager but poetry works as well.
(This actually isn’t very useful and I always use poetry
or the Packager
instead.)
The Packager
tab uses upm
which, in python, uses poetry
which uses pip
.
2 Likes
The Packager tab is known to be buggy, and is unreliable.
3 Likes
Yeah, I submitted a bug report about it recently because of configuration issues.
1 Like
Staff has said before that it’s poetry though
2 Likes
UPM, Universal Package Manager, is the language-agnostic manager of package managers (provides abstraction), built by replit. For python, poetry is the dependency manager, the package manager used by UPM for python.
Most repls use UPM, any repl with a .upm
folder and a working Packages
tab.
Hi @Nur-MohammadMo3 !
You can mark the post that helped you most as a Solution if it solved your problem.
2 Likes