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 theyare 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>
ModuleNotFoundError:
How do I reply to: Chris Angelico rosuav at gmail.com so it is listed
on the Python list?
print(sys.version_info) and executable:
Unable to initialize device PRN
Traceback (most recent call last):print(sys.version)
File "<stdin>", line 1, in <module>
NameError: name 'sys' is not defined
sys is a built-in module, but it's not in the namespace unless you import
it first.
before your print statement, enter "import sys"
On Fri, Jun 17, 2022 at 8:23 AM <z.szenderak@hotmail.com> wrote:
Thank you for your email.
C:\Users\zszen>python.exe
Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929
64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):print(sys.version)
File "<stdin>", line 1, in <module>
NameError: name 'sys' is not defined
Traceback (most recent call last):print(sys.executable)
File "<stdin>", line 1, in <module>
NameError: name 'sys' is not defined
On Fri, Jun 17, 2022, at 12:35 PM, Eryk Sun wrote:
On 6/17/22, Zoltan Szenderak <z.szenderak@hotmail.com> wrote:--
print(sys.version_info) and executable:
Unable to initialize device PRN
That's the command-line "print" program. You need to first start the
Python shell via python.exe. The prompt should change to ">>> ". Then
run print(sys.version) and print(sys.executable).
https://mail.python.org/mailman/listinfo/python-list
Thank you for your email.
C:\Users\zszen>python.exe
Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):print(sys.version)
File "<stdin>", line 1, in <module>
NameError: name 'sys' is not defined
Traceback (most recent call last):print(sys.executable)
File "<stdin>", line 1, in <module>
NameError: name 'sys' is not defined
On Fri, Jun 17, 2022, at 12:35 PM, Eryk Sun wrote:
On 6/17/22, Zoltan Szenderak <z.szenderak@hotmail.com> wrote:
print(sys.version_info) and executable:
Unable to initialize device PRN
That's the command-line "print" program. You need to first start the
Python shell via python.exe. The prompt should change to ">>> ". Then
run print(sys.version) and print(sys.executable).
--
https://mail.python.org/mailman/listinfo/python-list
Traceback (most recent call last):print(sys.version)
Traceback (most recent call last):print(sys.executable)
On 6/17/22, Zoltan Szenderak <z.szenderak@hotmail.com> wrote:
print(sys.version_info) and executable:
Unable to initialize device PRN
That's the command-line "print" program. You need to first start the
Python shell via python.exe. The prompt should change to ">>> ". Then
run print(sys.version) and print(sys.executable).
sorry, I may have misused the term "namespace." I'm not sure what the
proper word is for the names currently loaded into the global scope.
sorry, I may have misused the term "namespace." I'm not sure what the
proper word is for the names currently loaded into the global scope.
On Fri, Jun 17, 2022 at 8:26 AM inhahe <inhahe@gmail.com> wrote:
sys is a built-in module, but it's not in the namespace unless you import it first.
before your print statement, enter "import sys"
On Fri, Jun 17, 2022 at 8:23 AM <z.szenderak@hotmail.com> wrote:
Thank you for your email.
C:\Users\zszen>python.exe
Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929
64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):print(sys.version)
File "<stdin>", line 1, in <module>
NameError: name 'sys' is not defined
Traceback (most recent call last):print(sys.executable)
File "<stdin>", line 1, in <module>
NameError: name 'sys' is not defined
On Fri, Jun 17, 2022, at 12:35 PM, Eryk Sun wrote:
On 6/17/22, Zoltan Szenderak <z.szenderak@hotmail.com> wrote:--
print(sys.version_info) and executable:
Unable to initialize device PRN
That's the command-line "print" program. You need to first start the
Python shell via python.exe. The prompt should change to ">>> ". Then
run print(sys.version) and print(sys.executable).
https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 36:39:49 |
Calls: | 6,648 |
Calls today: | 3 |
Files: | 12,193 |
Messages: | 5,329,035 |