ModuleNotFoundError
Chris Angelico
rosuav at gmail.com
Wed Jun 15 15:14:49 EDT 2022
On Thu, 16 Jun 2022 at 05:00, Zoltan Szenderak <z.szenderak at hotmail.com> wrote:
>
>
>
> Only on my Windows 10, on my Windows 11 works perfectly. I uninstalled and reinstalled python, it did not help, I tried everything I found online, Stackoverflow, python.org, did not help. Not just this module, others too. They are installed where they are supposed to be and they produce the name not found error. Some modules work. The Path is set in the System Environment Variables list.
>
> (env) C:\Users\zszen>req3.py
> Traceback (most recent call last):
> File "C:\Users\zszen\env\Scripts\req3.py", line 2, in <module>
> import requests_html
> ModuleNotFoundError: No module named 'requests_html'
>
> (env) C:\Users\zszen>pip3 install requests_html
> Requirement already satisfied: requests_html in c:\users\zszen\env\lib\site-packages (0.10.0)
> Requirement already satisfied: requests in c:\users\zszen\env\lib\site-packages (from requests_html) (2.27.1)
> Requirement already satisfied: bs4 in c:\users\zszen\env\lib\site-packages (from requests_html) (0.0.1)
> Requirement already satisfied: fake-useragent in c:\users\zszen\env\lib\site-packages (from requests_html) (0.1.11)
> Requirement already satisfied: pyppeteer>=0.0.14 in c:\users\zszen\env\lib\site-packages (from requests_html) (1.0.2)
> Requirement already satisfied: pyquery in c:\users\zszen\env\lib\site-packages (from requests_html) (1.4.3)
> Requirement already satisfied: parse in c:\users\zszen\env\lib\site-packages (from requests_html) (1.19.0)
> Requirement already satisfied: w3lib in c:\users\zszen\env\lib\site-packages (from requests_html) (1.22.0)
> Requirement already satisfied: appdirs<2.0.0,>=1.4.3 in c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) (1.4.4)
> Requirement already satisfied: websockets<11.0,>=10.0 in c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) (10.3)
> Requirement already satisfied: urllib3<2.0.0,>=1.25.8 in c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) (1.26.9)
> Requirement already satisfied: tqdm<5.0.0,>=4.42.1 in c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) (4.64.0)
> Requirement already satisfied: importlib-metadata>=1.4 in c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) (4.11.4)
> Requirement already satisfied: pyee<9.0.0,>=8.1.0 in c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) (8.2.2)
> Requirement already satisfied: certifi>=2021 in c:\users\zszen\env\lib\site-packages (from pyppeteer>=0.0.14->requests_html) (2022.5.18.1)
> Requirement already satisfied: beautifulsoup4 in c:\users\zszen\env\lib\site-packages (from bs4->requests_html) (4.11.1)
> Requirement already satisfied: cssselect>0.7.9 in c:\users\zszen\env\lib\site-packages (from pyquery->requests_html) (1.1.0)
> Requirement already satisfied: lxml>=2.1 in c:\users\zszen\env\lib\site-packages (from pyquery->requests_html) (4.9.0)
> Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\zszen\env\lib\site-packages (from requests->requests_html) (2.0.12)
> Requirement already satisfied: idna<4,>=2.5 in c:\users\zszen\env\lib\site-packages (from requests->requests_html) (3.3)
> Requirement already satisfied: six>=1.4.1 in c:\users\zszen\env\lib\site-packages (from w3lib->requests_html) (1.16.0)
> Requirement already satisfied: zipp>=0.5 in c:\users\zszen\env\lib\site-packages (from importlib-metadata>=1.4->pyppeteer>=0.0.14->requests_html) (3.8.0)
> Requirement already satisfied: colorama in c:\users\zszen\env\lib\site-packages (from tqdm<5.0.0,>=4.42.1->pyppeteer>=0.0.14->requests_html) (0.4.4)
> Requirement already satisfied: soupsieve>1.2 in c:\users\zszen\env\lib\site-packages (from beautifulsoup4->bs4->requests_html) (2.3.2.post1)
>
> (env) C:\Users\zszen>
>
What does "pip3 --version" tell you, and what happens if you print out
sys.version at the top of your script? Also possibly sys.executable,
in case your script isn't running from inside the venv that it looks
like it ought to be working in.
ChrisA
More information about the Python-list
mailing list