Python installed module still can’t use it









up vote
0
down vote

favorite












So I am kind of new to Python and I downloaded “Anaconda3”. I added the Anaconda path the my environment variable.



I tried to install



pip3 install keyboard


And when I tried to import keyboard in my program, it says module not found. When I try to install it again, it say Requirement already satisfied.



Am I missing something? I am new to python so I must be doing something wrong here










share|improve this question

















  • 2




    Are you using python or python3 to run your program? Its quiet possible that python is set default to python2. Try using python3
    – Omkar Nath Singh
    Nov 11 at 16:20










  • try using just pip install, and try some other library/module and see if the issue occurs again
    – Paritosh Singh
    Nov 11 at 16:25










  • may be that post will helpfuly for you: stackoverflow.com/questions/41060382/…
    – Andrey Suglobov
    Nov 11 at 16:26










  • I used "python file.py" and the module worked perfectly, but "file.py" the module doesn't work. I don't understand the difference, can you reply to the post explaining the reason as an answer? thank you
    – Jiji Gaming
    Nov 11 at 16:29














up vote
0
down vote

favorite












So I am kind of new to Python and I downloaded “Anaconda3”. I added the Anaconda path the my environment variable.



I tried to install



pip3 install keyboard


And when I tried to import keyboard in my program, it says module not found. When I try to install it again, it say Requirement already satisfied.



Am I missing something? I am new to python so I must be doing something wrong here










share|improve this question

















  • 2




    Are you using python or python3 to run your program? Its quiet possible that python is set default to python2. Try using python3
    – Omkar Nath Singh
    Nov 11 at 16:20










  • try using just pip install, and try some other library/module and see if the issue occurs again
    – Paritosh Singh
    Nov 11 at 16:25










  • may be that post will helpfuly for you: stackoverflow.com/questions/41060382/…
    – Andrey Suglobov
    Nov 11 at 16:26










  • I used "python file.py" and the module worked perfectly, but "file.py" the module doesn't work. I don't understand the difference, can you reply to the post explaining the reason as an answer? thank you
    – Jiji Gaming
    Nov 11 at 16:29












up vote
0
down vote

favorite









up vote
0
down vote

favorite











So I am kind of new to Python and I downloaded “Anaconda3”. I added the Anaconda path the my environment variable.



I tried to install



pip3 install keyboard


And when I tried to import keyboard in my program, it says module not found. When I try to install it again, it say Requirement already satisfied.



Am I missing something? I am new to python so I must be doing something wrong here










share|improve this question













So I am kind of new to Python and I downloaded “Anaconda3”. I added the Anaconda path the my environment variable.



I tried to install



pip3 install keyboard


And when I tried to import keyboard in my program, it says module not found. When I try to install it again, it say Requirement already satisfied.



Am I missing something? I am new to python so I must be doing something wrong here







python python-3.x anaconda






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 11 at 16:17









Jiji Gaming

307




307







  • 2




    Are you using python or python3 to run your program? Its quiet possible that python is set default to python2. Try using python3
    – Omkar Nath Singh
    Nov 11 at 16:20










  • try using just pip install, and try some other library/module and see if the issue occurs again
    – Paritosh Singh
    Nov 11 at 16:25










  • may be that post will helpfuly for you: stackoverflow.com/questions/41060382/…
    – Andrey Suglobov
    Nov 11 at 16:26










  • I used "python file.py" and the module worked perfectly, but "file.py" the module doesn't work. I don't understand the difference, can you reply to the post explaining the reason as an answer? thank you
    – Jiji Gaming
    Nov 11 at 16:29












  • 2




    Are you using python or python3 to run your program? Its quiet possible that python is set default to python2. Try using python3
    – Omkar Nath Singh
    Nov 11 at 16:20










  • try using just pip install, and try some other library/module and see if the issue occurs again
    – Paritosh Singh
    Nov 11 at 16:25










  • may be that post will helpfuly for you: stackoverflow.com/questions/41060382/…
    – Andrey Suglobov
    Nov 11 at 16:26










  • I used "python file.py" and the module worked perfectly, but "file.py" the module doesn't work. I don't understand the difference, can you reply to the post explaining the reason as an answer? thank you
    – Jiji Gaming
    Nov 11 at 16:29







2




2




Are you using python or python3 to run your program? Its quiet possible that python is set default to python2. Try using python3
– Omkar Nath Singh
Nov 11 at 16:20




Are you using python or python3 to run your program? Its quiet possible that python is set default to python2. Try using python3
– Omkar Nath Singh
Nov 11 at 16:20












try using just pip install, and try some other library/module and see if the issue occurs again
– Paritosh Singh
Nov 11 at 16:25




try using just pip install, and try some other library/module and see if the issue occurs again
– Paritosh Singh
Nov 11 at 16:25












may be that post will helpfuly for you: stackoverflow.com/questions/41060382/…
– Andrey Suglobov
Nov 11 at 16:26




may be that post will helpfuly for you: stackoverflow.com/questions/41060382/…
– Andrey Suglobov
Nov 11 at 16:26












I used "python file.py" and the module worked perfectly, but "file.py" the module doesn't work. I don't understand the difference, can you reply to the post explaining the reason as an answer? thank you
– Jiji Gaming
Nov 11 at 16:29




I used "python file.py" and the module worked perfectly, but "file.py" the module doesn't work. I don't understand the difference, can you reply to the post explaining the reason as an answer? thank you
– Jiji Gaming
Nov 11 at 16:29












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Are you running the code with IDLE? If you're running the code on a version of IDLE Python thats different from the Anaconda Python version, the modules installed will not be applicable.



If you are new to python I fully recommend that you dont use Anaconda and use only IDLE for python, this way you don't have to worry about things like environment setup.






share|improve this answer




















  • I personally found Anaconda extremely user friendly as a new programmer.
    – Paritosh Singh
    Nov 11 at 16:26










  • But IDLE - python's default installed editor has basic features that a beginner would need and I have not seen any procedures that may seem confusing for any developer. However my statement was supposed to be just a suggestion.
    – Vikhyat Agarwal
    Nov 11 at 16:28










  • Yes looks like I was running the code "IDLE" which I understood it as using cmd to run the script and not using anaconda. and thank you
    – Jiji Gaming
    Nov 11 at 16:35










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',
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%2f53250668%2fpython-installed-module-still-can-t-use-it%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










Are you running the code with IDLE? If you're running the code on a version of IDLE Python thats different from the Anaconda Python version, the modules installed will not be applicable.



If you are new to python I fully recommend that you dont use Anaconda and use only IDLE for python, this way you don't have to worry about things like environment setup.






share|improve this answer




















  • I personally found Anaconda extremely user friendly as a new programmer.
    – Paritosh Singh
    Nov 11 at 16:26










  • But IDLE - python's default installed editor has basic features that a beginner would need and I have not seen any procedures that may seem confusing for any developer. However my statement was supposed to be just a suggestion.
    – Vikhyat Agarwal
    Nov 11 at 16:28










  • Yes looks like I was running the code "IDLE" which I understood it as using cmd to run the script and not using anaconda. and thank you
    – Jiji Gaming
    Nov 11 at 16:35














up vote
1
down vote



accepted










Are you running the code with IDLE? If you're running the code on a version of IDLE Python thats different from the Anaconda Python version, the modules installed will not be applicable.



If you are new to python I fully recommend that you dont use Anaconda and use only IDLE for python, this way you don't have to worry about things like environment setup.






share|improve this answer




















  • I personally found Anaconda extremely user friendly as a new programmer.
    – Paritosh Singh
    Nov 11 at 16:26










  • But IDLE - python's default installed editor has basic features that a beginner would need and I have not seen any procedures that may seem confusing for any developer. However my statement was supposed to be just a suggestion.
    – Vikhyat Agarwal
    Nov 11 at 16:28










  • Yes looks like I was running the code "IDLE" which I understood it as using cmd to run the script and not using anaconda. and thank you
    – Jiji Gaming
    Nov 11 at 16:35












up vote
1
down vote



accepted







up vote
1
down vote



accepted






Are you running the code with IDLE? If you're running the code on a version of IDLE Python thats different from the Anaconda Python version, the modules installed will not be applicable.



If you are new to python I fully recommend that you dont use Anaconda and use only IDLE for python, this way you don't have to worry about things like environment setup.






share|improve this answer












Are you running the code with IDLE? If you're running the code on a version of IDLE Python thats different from the Anaconda Python version, the modules installed will not be applicable.



If you are new to python I fully recommend that you dont use Anaconda and use only IDLE for python, this way you don't have to worry about things like environment setup.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 11 at 16:25









Vikhyat Agarwal

420214




420214











  • I personally found Anaconda extremely user friendly as a new programmer.
    – Paritosh Singh
    Nov 11 at 16:26










  • But IDLE - python's default installed editor has basic features that a beginner would need and I have not seen any procedures that may seem confusing for any developer. However my statement was supposed to be just a suggestion.
    – Vikhyat Agarwal
    Nov 11 at 16:28










  • Yes looks like I was running the code "IDLE" which I understood it as using cmd to run the script and not using anaconda. and thank you
    – Jiji Gaming
    Nov 11 at 16:35
















  • I personally found Anaconda extremely user friendly as a new programmer.
    – Paritosh Singh
    Nov 11 at 16:26










  • But IDLE - python's default installed editor has basic features that a beginner would need and I have not seen any procedures that may seem confusing for any developer. However my statement was supposed to be just a suggestion.
    – Vikhyat Agarwal
    Nov 11 at 16:28










  • Yes looks like I was running the code "IDLE" which I understood it as using cmd to run the script and not using anaconda. and thank you
    – Jiji Gaming
    Nov 11 at 16:35















I personally found Anaconda extremely user friendly as a new programmer.
– Paritosh Singh
Nov 11 at 16:26




I personally found Anaconda extremely user friendly as a new programmer.
– Paritosh Singh
Nov 11 at 16:26












But IDLE - python's default installed editor has basic features that a beginner would need and I have not seen any procedures that may seem confusing for any developer. However my statement was supposed to be just a suggestion.
– Vikhyat Agarwal
Nov 11 at 16:28




But IDLE - python's default installed editor has basic features that a beginner would need and I have not seen any procedures that may seem confusing for any developer. However my statement was supposed to be just a suggestion.
– Vikhyat Agarwal
Nov 11 at 16:28












Yes looks like I was running the code "IDLE" which I understood it as using cmd to run the script and not using anaconda. and thank you
– Jiji Gaming
Nov 11 at 16:35




Yes looks like I was running the code "IDLE" which I understood it as using cmd to run the script and not using anaconda. and thank you
– Jiji Gaming
Nov 11 at 16:35

















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f53250668%2fpython-installed-module-still-can-t-use-it%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







這個網誌中的熱門文章

What does pagestruct do in Eviews?

Dutch intervention in Lombok and Karangasem

Channel Islands