No module named “selenium/googletrans/tabula” when running script through cmd but works fine on idle?












0















I have a list of python scripts which run perfectly fine through idle. However, when I run it through cmd I get various errors stating



No module named 'selenium',
,No module named 'googletrans'
,No module named 'tabula'



When I use pip install it says.
'Requirement already satisfied'



Also when I check pip list the above mentioned modules are there.



sys.path



In cmd



['', 'C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haran C:Usersjay.haranAppDataLocalProgramsPythonPython36-32Libidlelib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python36.zip', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32DLLs', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32lib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32libsite-packages']



'I added the second and third item in the list



In idle



['C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haranDocumentsPC_scrapeScraper C:Usersjay.haranAppDataLocalProgramsPythonPython36-32Libidlelib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python36.zip', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32DLLs', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32lib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32libsite-packages']



sys.version
In both



In cmd and In idle = 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)]



sys.executable



In cmd = C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python.exe



In idle = C:Usersjay.haranAppDataLocalProgramsPythonPython36-32pythonw.exe



There are other modules installed such as bs4, xlrd, pandas that aren't causing any issues.



Thank you very much for any help.










share|improve this question























  • The usual answer to this sort of question is that you have two python installations and the packages are only installed for one of them. But you have already checked that. I presume you are starting IDLE from an icon that runs pythonw.ex3. What do you enter in the console?

    – Terry Jan Reedy
    Jun 4 '18 at 20:22











  • I go to the folder the script is located in via cmd and I type Bundaberg.py. How can I fix this issue I have tried uninstalling python and reinstalling but it still persists.

    – Jay Haran
    Jun 5 '18 at 8:09











  • The paths you show cmd include idlelib. I think this is a mistake somewhere. At the top of Bundaberg.py, put import sys followed by for p in sys.path: print(p). Run Bundaberg.py both from a command line and from IDLE, Then replace the run-on lists above with the one file per line output, untouched by you.

    – Terry Jan Reedy
    Jun 5 '18 at 23:08
















0















I have a list of python scripts which run perfectly fine through idle. However, when I run it through cmd I get various errors stating



No module named 'selenium',
,No module named 'googletrans'
,No module named 'tabula'



When I use pip install it says.
'Requirement already satisfied'



Also when I check pip list the above mentioned modules are there.



sys.path



In cmd



['', 'C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haran C:Usersjay.haranAppDataLocalProgramsPythonPython36-32Libidlelib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python36.zip', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32DLLs', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32lib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32libsite-packages']



'I added the second and third item in the list



In idle



['C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haranDocumentsPC_scrapeScraper C:Usersjay.haranAppDataLocalProgramsPythonPython36-32Libidlelib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python36.zip', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32DLLs', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32lib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32libsite-packages']



sys.version
In both



In cmd and In idle = 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)]



sys.executable



In cmd = C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python.exe



In idle = C:Usersjay.haranAppDataLocalProgramsPythonPython36-32pythonw.exe



There are other modules installed such as bs4, xlrd, pandas that aren't causing any issues.



Thank you very much for any help.










share|improve this question























  • The usual answer to this sort of question is that you have two python installations and the packages are only installed for one of them. But you have already checked that. I presume you are starting IDLE from an icon that runs pythonw.ex3. What do you enter in the console?

    – Terry Jan Reedy
    Jun 4 '18 at 20:22











  • I go to the folder the script is located in via cmd and I type Bundaberg.py. How can I fix this issue I have tried uninstalling python and reinstalling but it still persists.

    – Jay Haran
    Jun 5 '18 at 8:09











  • The paths you show cmd include idlelib. I think this is a mistake somewhere. At the top of Bundaberg.py, put import sys followed by for p in sys.path: print(p). Run Bundaberg.py both from a command line and from IDLE, Then replace the run-on lists above with the one file per line output, untouched by you.

    – Terry Jan Reedy
    Jun 5 '18 at 23:08














0












0








0








I have a list of python scripts which run perfectly fine through idle. However, when I run it through cmd I get various errors stating



No module named 'selenium',
,No module named 'googletrans'
,No module named 'tabula'



When I use pip install it says.
'Requirement already satisfied'



Also when I check pip list the above mentioned modules are there.



sys.path



In cmd



['', 'C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haran C:Usersjay.haranAppDataLocalProgramsPythonPython36-32Libidlelib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python36.zip', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32DLLs', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32lib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32libsite-packages']



'I added the second and third item in the list



In idle



['C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haranDocumentsPC_scrapeScraper C:Usersjay.haranAppDataLocalProgramsPythonPython36-32Libidlelib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python36.zip', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32DLLs', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32lib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32libsite-packages']



sys.version
In both



In cmd and In idle = 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)]



sys.executable



In cmd = C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python.exe



In idle = C:Usersjay.haranAppDataLocalProgramsPythonPython36-32pythonw.exe



There are other modules installed such as bs4, xlrd, pandas that aren't causing any issues.



Thank you very much for any help.










share|improve this question














I have a list of python scripts which run perfectly fine through idle. However, when I run it through cmd I get various errors stating



No module named 'selenium',
,No module named 'googletrans'
,No module named 'tabula'



When I use pip install it says.
'Requirement already satisfied'



Also when I check pip list the above mentioned modules are there.



sys.path



In cmd



['', 'C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haran C:Usersjay.haranAppDataLocalProgramsPythonPython36-32Libidlelib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python36.zip', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32DLLs', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32lib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32libsite-packages']



'I added the second and third item in the list



In idle



['C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haranDocumentsPC_scrapeScraper', 'C:Usersjay.haranDocumentsPC_scrapeScraper C:Usersjay.haranAppDataLocalProgramsPythonPython36-32Libidlelib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python36.zip', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32DLLs', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32lib', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32', 'C:Usersjay.haranAppDataLocalProgramsPythonPython36-32libsite-packages']



sys.version
In both



In cmd and In idle = 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)]



sys.executable



In cmd = C:Usersjay.haranAppDataLocalProgramsPythonPython36-32python.exe



In idle = C:Usersjay.haranAppDataLocalProgramsPythonPython36-32pythonw.exe



There are other modules installed such as bs4, xlrd, pandas that aren't causing any issues.



Thank you very much for any help.







python selenium cmd python-idle






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 4 '18 at 17:11









Jay HaranJay Haran

607




607













  • The usual answer to this sort of question is that you have two python installations and the packages are only installed for one of them. But you have already checked that. I presume you are starting IDLE from an icon that runs pythonw.ex3. What do you enter in the console?

    – Terry Jan Reedy
    Jun 4 '18 at 20:22











  • I go to the folder the script is located in via cmd and I type Bundaberg.py. How can I fix this issue I have tried uninstalling python and reinstalling but it still persists.

    – Jay Haran
    Jun 5 '18 at 8:09











  • The paths you show cmd include idlelib. I think this is a mistake somewhere. At the top of Bundaberg.py, put import sys followed by for p in sys.path: print(p). Run Bundaberg.py both from a command line and from IDLE, Then replace the run-on lists above with the one file per line output, untouched by you.

    – Terry Jan Reedy
    Jun 5 '18 at 23:08



















  • The usual answer to this sort of question is that you have two python installations and the packages are only installed for one of them. But you have already checked that. I presume you are starting IDLE from an icon that runs pythonw.ex3. What do you enter in the console?

    – Terry Jan Reedy
    Jun 4 '18 at 20:22











  • I go to the folder the script is located in via cmd and I type Bundaberg.py. How can I fix this issue I have tried uninstalling python and reinstalling but it still persists.

    – Jay Haran
    Jun 5 '18 at 8:09











  • The paths you show cmd include idlelib. I think this is a mistake somewhere. At the top of Bundaberg.py, put import sys followed by for p in sys.path: print(p). Run Bundaberg.py both from a command line and from IDLE, Then replace the run-on lists above with the one file per line output, untouched by you.

    – Terry Jan Reedy
    Jun 5 '18 at 23:08

















The usual answer to this sort of question is that you have two python installations and the packages are only installed for one of them. But you have already checked that. I presume you are starting IDLE from an icon that runs pythonw.ex3. What do you enter in the console?

– Terry Jan Reedy
Jun 4 '18 at 20:22





The usual answer to this sort of question is that you have two python installations and the packages are only installed for one of them. But you have already checked that. I presume you are starting IDLE from an icon that runs pythonw.ex3. What do you enter in the console?

– Terry Jan Reedy
Jun 4 '18 at 20:22













I go to the folder the script is located in via cmd and I type Bundaberg.py. How can I fix this issue I have tried uninstalling python and reinstalling but it still persists.

– Jay Haran
Jun 5 '18 at 8:09





I go to the folder the script is located in via cmd and I type Bundaberg.py. How can I fix this issue I have tried uninstalling python and reinstalling but it still persists.

– Jay Haran
Jun 5 '18 at 8:09













The paths you show cmd include idlelib. I think this is a mistake somewhere. At the top of Bundaberg.py, put import sys followed by for p in sys.path: print(p). Run Bundaberg.py both from a command line and from IDLE, Then replace the run-on lists above with the one file per line output, untouched by you.

– Terry Jan Reedy
Jun 5 '18 at 23:08





The paths you show cmd include idlelib. I think this is a mistake somewhere. At the top of Bundaberg.py, put import sys followed by for p in sys.path: print(p). Run Bundaberg.py both from a command line and from IDLE, Then replace the run-on lists above with the one file per line output, untouched by you.

– Terry Jan Reedy
Jun 5 '18 at 23:08












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50685594%2fno-module-named-selenium-googletrans-tabula-when-running-script-through-cmd-bu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50685594%2fno-module-named-selenium-googletrans-tabula-when-running-script-through-cmd-bu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

How to fix TextFormField cause rebuild widget in Flutter