On 2/9/21 7:55 AM, Philipp Daher via Python-list wrote:
Hello,

I’ve just typed „pip install selenium“ into my command prompt on windows 10. 
Although my computer told me that the requirement was already satisfied, import 
selenium did not work. So I tried different methods to install it and typed 
„Python“ in my command prompt and imported selenium. It worked fine. Then, I 
typed it into my shell and got an error. Why is it working in the command 
prompt but not in the actual shell?


This isn't really making sense - what do you consider to be the difference between "the command prompt" and "the actual shell"? When you run the python program from a command line (cmd.exe or PowerShell), what you get is the Python interpreter, or shell, or whatever you want to call it. You said things worked there - so the installation is fine.

Now what does "Then, I typed it into my shell and got an error" mean? If you mean you typed "import selenium" in cmd.exe, why would you expect that to work? The import is an instruction to Python...

Please explain further so we can try to help.



--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to