Apr-17-2018, 02:16 AM
Update.
So i can install requests completely:
C:\>pip install requests
Requirement already satisfied: requests in c:\python\lib\site-packages (2.18.4)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python\lib\site-packages (from requests) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\python\lib\site-packages (from requests) (2018.4.16)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\python\lib\site-packages (from requests) (1.22)
Requirement already satisfied: idna<2.7,>=2.5 in c:\python\lib\site-packages (from requests) (2.6)
So i think i resolved an issue there, but when i run requests for python im back to the main issue:
>>> import requests
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'requests'
>>>
For lxml:
C:\>pip install lxml
Collecting lxml
Downloading https://files.pythonhosted.org/packages/..._amd64.whl (3.6MB)
100% |████████████████████████████████| 3.6MB 924kB/s
Installing collected packages: lxml
Successfully installed lxml-4.2.1
When i run it for import:
>>> import lxml
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'lxml'
>>>
>>> from lxml import html, etree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'lxml'
>>>
Really confused here.
Thanks
So i can install requests completely:
C:\>pip install requests
Requirement already satisfied: requests in c:\python\lib\site-packages (2.18.4)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python\lib\site-packages (from requests) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\python\lib\site-packages (from requests) (2018.4.16)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\python\lib\site-packages (from requests) (1.22)
Requirement already satisfied: idna<2.7,>=2.5 in c:\python\lib\site-packages (from requests) (2.6)
So i think i resolved an issue there, but when i run requests for python im back to the main issue:
>>> import requests
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'requests'
>>>
For lxml:
C:\>pip install lxml
Collecting lxml
Downloading https://files.pythonhosted.org/packages/..._amd64.whl (3.6MB)
100% |████████████████████████████████| 3.6MB 924kB/s
Installing collected packages: lxml
Successfully installed lxml-4.2.1
When i run it for import:
>>> import lxml
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'lxml'
>>>
>>> from lxml import html, etree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'lxml'
>>>
Really confused here.
Thanks