How to STOP automatic Poetry install
How can I stop automatic poetry install? My package can not be installed via poetry so I'm instead doing pip install on .replit file. However, when I run my code, it automatically adds the package into poetry and gives me an error, which can be easily resolved is it doesn't automatically runs this commands!!!
python3 -m poetry init --no-interaction
and
python3 -m poetry add mask-predictor
I have found a way to remove Poetry successfully from Replit. If you want, you can just fork the repl here. I deleted the poetry
folder in /venv/lib/{python_version}/site-packages
(you have to enable Show hidden files
). I then made a new emtpy poetry folder in the directory. I then added a __main.py__
file which I left empty. I also deleted the poetry
file in /venv/bin
. And now Poetry is uninstalled! Replit will still run the various Poetry commands, like poetry install {module}
, but they won't do anything! You can install packages in the shell by using the command pip install {module}
.
No, you can't do that. When you import something, it has to make those installations.
I don't think you can
pip uninstall poetry
But all packages will be need download in shell.
Replit will try to poetry install but since I uninstall it it shows up a error and the program won't run and idk how to like stop it, anyone help?
EDIT: I ACTUALLY GOT IT, here is how I did it:
I uninstalled poetry.lock and pyproject.toml, then I go show hidden files, venv/bin/python3, then delete all the things under #!/usr/bin/env bash, then run it! IT WORKED
BUT! there is one thing, after doing this, the shell won't work anymore, if you do pip what what, it won't do anything, that's the sad thing but it is still good to see it's working