PIP is not working on Selenium template by @LuisAFK

When I run pip in the shell it throws:

Traceback (most recent call last): File "/home/runner/Selenium-test/venv/bin/pip", line 5, in <module> from pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip'

I tried adding the following code in replit.nix , but it didn’t work:

{ pkgs }: {
deps = [
pkgs.python39Packages.pip
];

Repl link: https://replit.com/@zaieem/Selenium-test
Template link by @LuisAFK: https://replit.com/@LuisAFK/Selenium?v=1

(Sorry if this sounds stupid, I’m new to all this. I really appreciate any help you can provide. Thanks :slight_smile: )

1 Like

You should use Poetry instead of Pip, so poetry add yourpackage or just use the Replit packager tool.

1 Like

Ah, I see, thanks!

I’ll let you know if this works :))

1 Like

Throws:

Traceback (most recent call last): File "/home/runner/Selenium-test/venv/bin/poetry", line 5, in <module> from poetry.console import main ModuleNotFoundError: No module named 'poetry'

Well, I was able to install the packages I needed using Replit packages tool, so no need to use poetry/pip.

1 Like

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