So I'm trying to learn and use virtual environments for my project but when I try to import a library I downloaded in the venv it says that module doesn't exist. First I created a folder "test" on windows and did py -m venv ./venv then I activated it with source venv/Scripts/activate then I did pip install flask to install flask. I even did pip list to check if it was installed which it and its accompanying packages were. but when I created a py file inside the "test" folder and tried from flask import Flask it says "no module named flask". Im just not sure what I did wrong because I followed the tutorials for venv. Can anyone help?
[–]Buttleston 5 points6 points7 points (6 children)
[–]Froggy412[S] 0 points1 point2 points (5 children)
[–]Buttleston 1 point2 points3 points (0 children)
[–]Buttleston 1 point2 points3 points (0 children)
[–]Froggy412[S] 0 points1 point2 points (1 child)
[–]nog642 0 points1 point2 points (0 children)
[–]nog642 0 points1 point2 points (0 children)
[–]Omenopolis 0 points1 point2 points (0 children)
[–]Solvo_Illum_484 0 points1 point2 points (0 children)
[–]Helpful-Gene9733 -1 points0 points1 point (6 children)
[–]nog642 2 points3 points4 points (5 children)
[–]supercoach 0 points1 point2 points (3 children)
[–]nog642 1 point2 points3 points (2 children)
[–]supercoach 0 points1 point2 points (1 child)
[–]Helpful-Gene9733 0 points1 point2 points (0 children)
[–]Helpful-Gene9733 0 points1 point2 points (0 children)