Keep getting selenium cant be found even though i installed it - python

Traceback (most recent call last):
File "c:\Users\user\OneDrive\Documents\GitHub\Python\GPUBuyer\Airis Tech Bot.py", line 1, in <module>
from selenium import webdriver as wd
ModuleNotFoundError: No module named 'selenium'
I try to run this script from vs code. i keep getting this error even though i installed selenium in the folder

You can use the command "pip install selenium" to install selenium on the terminal, and then use the command "pip show selenium" to check whether the installation is successful.Executing again should solve the problem.

Related

ModuleNotFoundError: No module named 'feedparser'

I have Python 3.11 and I have done everything expect Anaconda thing in this video below to try and fix this issue.
https://www.youtube.com/watch?v=RvbUqf3Tb1s&t=181s&ab_channel=TechWithTim
Here is the error:
C:\Python311\python.exe
C:\Users\16789\PycharmProjects\cyberNewsfeed\main.py Traceback (most
recent call last): File
"C:\Users\16789\PycharmProjects\cyberNewsfeed\main.py", line 1, in
import feedparser ModuleNotFoundError: No module named 'feedparser'
Attached is a screenshot of my interpeter and structue.
Tried everything in the linked video besides anaconda and i was expecting it to run. I restarted my computer as well.
You have to install the missing package. Try this in a shell inside your python environment.
pip install feedparser

Module can be imported in the terminal, but not IDLE

Recently, when I use pip to install python modules, I will get an error saying that the module has not been downloaded when I run it in the IDLE. However, when I run the same script in the terminal, it works fine. What is this error and how can I solve it?
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
import gspread
ModuleNotFoundError: No module named 'gspread'
Probably you have different versions of python installed.
The version you used pip to install new modules is different from the version you access with IDLE.

Modules are not recognized after install

I have downloaded selenium module and installed it using python setup.py install. When i open up Pycharm and try to import Selenium it gives me this error:
Traceback (most recent call last):
File "C:/Users/mali03/.PyCharmCE2018.1/config/scratches/exe.py", line 1, in
<module> from selenium import webdriver
ModuleNotFoundError: No module named selenium'
Is it because of the interpreter? Where did python install the module and how do i access it?
It's because of Pycharm doesn't know where to find out selenium, or which python interpreter you are using.
Please select correct Python version.
You can found them in Settings | Project Interpreter > Wheel - More > Show Paths for the selected interpreter"

Failing to install Python openpyxl module

I have installed the openpyxl Python module in my machine, or at least I thought I've done that. I entered these commands on the command prompt (on Windows):
C:\Users\gluti>cd C:\Users\gluti\PycharmProjects\Data Structures\venv\Scripts
C:\Users\gluti\PycharmProjects\Data Structures\venv\Scripts>pip install openpyxl==2.1.4
And then, it shows a message, saying that the module openpyxl was successfully installed. However, when I try to import this module on Python IDLE, it shows the following error message:
import openpyxl
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import openpyxl
ModuleNotFoundError: No module named 'openpyxl'
Did I miss something or am I installing the module in the wrong directory?
It is possible you have installed python 2 and python 3 so there are two different versions of pip on your machine.
You need to ensure you are installing openpyxl in the same type of python that you are using to run the script.

no module named pywinauto

when I type the following on python2.5 IDLE (windows vista 32-bit)--
from pywinauto import Application
I get this error message--
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import pywinauto
ImportError: No module named pywinauto
I followed the instructions from this site, and did not get any error message during installation. What did I not get right here?
Thanks!
Do you have multiple versions of Python installed? Maybe the python.exe that was used for python.exe setup.py install is not Python 2.5. To check, open a command prompt and run python.exe -V.
If that is the problem, you need to go to the directory where you extracted the pywinauto zip file, and run C:\python25\python.exe setup.py install

Categories