Correct module for site customization of path

dieter.maurer at online.de dieter.maurer at online.de
Fri Nov 1 12:32:04 EDT 2024


> ...
>After the recent upgrades I had to install youtube_dl with pipx for the
>new python version.
>When I ran the script which imported youtube_dl, I got an import error
>as it appears the path to the module
>was not in sys.path....

I see at several options:

 * install `youtoube_dl` where Python looks for it
   (you can print `sys.path` to find out all the places
   normally checked for importable modules)

 * put a (symbolic) link to `youtoube_dl` at a place
   where Python looks for modules

 * use Pythons' `.pth' feature to tell Python additional
   places where to look for modules.
   You can place `.pth` files where Python looks for modules
   to be imported


More information about the Python-list mailing list