Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1. py -m pip freeze is the same. Returns nothing. 2. yes, I am running as python scripty.py. That line of code returns of path of my venv folder. py -m pip show <pkg> returns the following error: WARNING: Package(s) not found: <pkg> Commented Aug 19, 2021 at 19:49
  • 1
    1. You need to replace <pkg> woth the real package name, did you fo that? 2. Are you sure the installation is completed successfully? 3. Why do you use py for installation instead of python which you use to run your script? Commented Aug 19, 2021 at 20:12
  • yes, I did replace <pkg> with pyqt5, which is what I was trying to install, I am just trying to be generic here. 2. If by installation is completed successfully means having them showed up in the env/Lib/site-packages folder, and terminal giving me the output Installed succesfully, then yes. 3. I can run my script with either python or py, its the same. For installation, I used py as I am following the official documentation seen here. Commented Aug 19, 2021 at 20:26
  • 1
    Edit to my previous comment, I have to use python to run my script, but not py. I created a new folder on my desktop, and moved the venv folder to it, and pip freeze is working as expected now. Weird that pip freeze is not working at my original directory (where it used to work), but I can run my script without problem with python script.py. Commented Aug 19, 2021 at 20:40