Skip to content
← Back to Community
How to STOP automatic Poetry install
Profile icon
TheWhiteShadow

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

Voters
Profile icon
BlueRobinRobin
Profile icon
ajanjairam
Profile icon
opossum23
Profile icon
frankie567
Profile icon
BenitzCoding
Profile icon
malpkakefirek
Profile icon
TheWhiteShadow
Comments
hotnewtop
Profile icon
didlly

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}.

Profile icon
TheArcherST

pip uninstall poetry

But all packages will be need download in shell.

Profile icon
Akashdeep122

@TheArcherST
replit gets a error that no package found poetry BRUHH, i cant put it to run on pip

Profile icon
ThEa132CoDeR

@Akashdeep122
try actually deleting the poetry module.

Profile icon
ffje

@TheArcherST

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

Profile icon
RYANTADIPARTHI

No, you can't do that. When you import something, it has to make those installations.

Profile icon
TheWhiteShadow

@RYANTADIPARTHI
Yes, it will if you have it installed previously. However, I found that Repl already has something for this.

Profile icon
RYANTADIPARTHI
Profile icon
AnnasVirtual

@RYANTADIPARTHI
the problem is it's intall the wrong package

Profile icon
OlauPla

I don't think you can