I am making a Python Repl but for some reason I can’t use the pip command.
I have tried executing pip --version in the shell but this just shows bash: /home/runner/BingusTools/venv/bin/pip: No such file or directory.
If I try to use pip install that shows the same error.
And when I try to install a package using the package installer, that raises a ModuleNotFoundError: No module named 'pip._internal' error and exits with exit status 1 and shows Replit: Package operation failed.
If someone can tell me how to get pip back then please help!
I ran the first command successfully but running the second one shows
An error occurred during configuration: option use-feature: invalid choice: 'content-addressable-pool' (choose from '2020-resolver', 'fast-deps', 'in-tree-build')
Avoid using pip manually and instead use poetry. If there’s a bug fix or feature that’s only available on upstream poetry, don’t updatepoetry but you could try and open a pull request. You could create an Ask topic to see if there’s a better way of solving your issue meanwhile. Even if you can fix it with a PR, you might have to open Bug Reports and link the PR for it to be noticed.
See if this works. If not, please create a new Python topic and fill in the template fields with relevant info (for the repl link, a minimal repl which reproduces the issue)