There is a boatload of documentation of site path configuration, but
still, I am not sure what option to take.
...I see at several options:
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....
In /usr/lib/python3.12/sitecustomize.py I put the following:...I see at several options:
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....
* 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
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 991 |
Nodes: | 10 (1 / 9) |
Uptime: | 132:57:12 |
Calls: | 12,960 |
Calls today: | 2 |
Files: | 186,574 |
Messages: | 3,266,147 |