Re: ModuleNotFoundError in Terminal, PyCharm OK
dn via Tutor <[email protected]>
| Newsgroups | gmane.comp.python.tutor |
|---|---|
| Organization | DWM |
| Message-ID | <[email protected]> |
On 28/06/2023 08.35, trent shipley wrote: > PyCharm can run the code below or process the marked line, #2, in the > console, as in the snip, below, but I can't figure out how to feed the > program command line args. Recommend a review of the way Python keeps track of various and multiple directories, and thus how/where it finds the modules for import-ing: https://docs.python.org/3/using/cmdline.html Thereafter, add debug code/create snippet to display the PYTHONPATH, and run from (same dir as this) in both PyCharm and terminal. Illumination will follow! -- Regards, =dn _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor