Why is requests module not found in pyev eclipse but available from command line

0

pydev is looking inside the below path for module name requests and not able to find:

[msingh@centos eric6-19.04]$ ls /opt/rh
devtoolset-4  devtoolset-7  rh-java-common  rh-python36
[msingh@centos eric6-19.04]$ ls /opt/rh/rh-python36
enable  root
[msingh@centos eric6-19.04]$ 

enter image description here

but the same module is found on command-line when trying to install :

[msingh@centos safaribooks]$ sudo pip3.6 install requests
[sudo] password for msingh: 
Requirement already satisfied: requests in /usr/lib/python3.6/site-packages (2.19.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3.6/site-packages (from requests) (3.0.4)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests) (1.23)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.6/site-packages (from requests) (2018.4.16)
Requirement already satisfied: idna<2.8,>=2.5 in /usr/lib/python3.6/site-packages (from requests) (2.7)

munish

Posted 2019-04-17T06:10:11.630

Reputation: 809

No answers