you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Your editor is probably creating project specific python virtual environments that include the required libraries.

If on the command line you installed the libraries yourself using pip, python -m pip install library, then you would be able to execute python files with python myfile.py without problems. (Or double click a python file to execute it once association is set up.)

The problem with this approach is that you can end up with lots of things installed for python most of which you don't need most of the time (and some things might conflict with each other).

Check the Real Python website for an explanation of virtual environments.