Skip to content
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

You are viewing a single comment. View All
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}.