Installing Python packages on a non-python repl?

Hello, I am using a PHP repl and is planning to use the exec command.
The PHP side of things works well, however on Python, it says I need to install the requests packages. When I go to the shell and run the command pip3 install requests --user, it claims it has been installed, however when I run it again it continues on to say its not installed.

Is there any solutions to this?

Try this: pip install requests -U
And if it still errors give us the full error.


run in shell:

python -m venv venv
echo '[env]
VIRTUAL_ENV = "/home/runner/${REPL_SLUG}/venv"
PYTHONPATH = "${VIRTUAL_ENV}/lib/python3.10/site-packages"' >> .replit
pip install requests pillow

Thank you! This solution works perfectly. :smiling_face_with_three_hearts:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.