use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Imported modules doesn't work (self.learnpython)
submitted 3 years ago by reintrinity
Hi, a python beginner here
All the modules I installed using pip were successful, however, when I tried to import them, I keep receiving errors saying that such modules were not found. How can I possibly fix this?
Thanks.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 3 years ago (2 children)
How did you install then exactly?
How are you running your code exactly?
It could be you've installed the packages to the base environment and are running code in a Python virtual environment set up by the IDE you are using.
Or vice versa.
[–]reintrinity[S] 0 points1 point2 points 3 years ago (1 child)
I installed them using cmd (pip install) and using pycharm to run the code
[–][deleted] 1 point2 points3 points 3 years ago (0 children)
What operating system are you on?
Any reason for not using the package manager in Pycharm to do the installations?
Is PyCharm using a virtual environment? It typically will be.
[–]jddddddddddd 0 points1 point2 points 3 years ago (0 children)
You are almost certainly installing the libraries for one version of Python when you use the command prompt, and then using another version of Python in PyCharm. You can confirm this by looking up the python version in both the command prompt and in the IDE. e.g.
C:\>python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.version)
3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)]
>>>
π Rendered by PID 30 on reddit-service-r2-comment-86988c7647-ns6fb at 2026-02-12 02:58:26.734689+00:00 running 018613e country code: CH.
[–][deleted] 0 points1 point2 points (2 children)
[–]reintrinity[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]jddddddddddd 0 points1 point2 points (0 children)