this is a noob question and probably been asked before (although I couldn't find any)
when trying to install lynda-dl, I'm getting the following error
the old script wrapper happens cuz I upgraded pip3 with sudo (which I probably shouldn't do), however the installation failed for the exactly same reason before I've done the upgrade
➜ lynda-dl git:(master) ✗ python3 -V
Python 3.7.3
➜ lynda-dl git:(master) ✗ npm -v
6.14.1
➜ lynda-dl git:(master) ✗ pip3 -V
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
pip 20.0.2 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
➜ lynda-dl git:(master) ✗ pip3 install ./
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /srv/dev-disk-by-label-data/app/lynda-dl
Requirement already satisfied: requests[security] in /usr/lib/python3/dist-packages (from lynda-dl==0.3) (2.21.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from lynda-dl==0.3) (1.12.0)
Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from lynda-dl==0.3) (0.3.7)
Requirement already satisfied: unidecode in /usr/local/lib/python3.7/dist-packages (from lynda-dl==0.3) (1.1.1)
Requirement already satisfied: pyOpenSSL in /usr/local/lib/python3.7/dist-packages (from lynda-dl==0.3) (19.1.0)
Requirement already satisfied: cryptography>=1.3.4 in /usr/local/lib/python3.7/dist-packages (from requests[security]->lynda-dl==0.3) (2.8)
Requirement already satisfied: idna>=2.0.0 in /usr/lib/python3/dist-packages (from requests[security]->lynda-dl==0.3) (2.6)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/local/lib/python3.7/dist-packages (from cryptography>=1.3.4->requests[security]->lynda-dl==0.3) (1.14.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi!=1.11.3,>=1.8->cryptography>=1.3.4->requests[security]->lynda-dl==0.3) (2.19)
Building wheels for collected packages: lynda-dl
Building wheel for lynda-dl (setup.py) ... done
Created wheel for lynda-dl: filename=lynda_dl-0.3-py3-none-any.whl size=27440 sha256=aaef9c6d27b56789de52876ab3fec170537e6d7df9b171747fe342809dd725b5
Stored in directory: /home/pi/.cache/pip/wheels/21/d9/19/dac31d42fa5a4baff1e20122b8d657cc9d16f653da56e9a9e5
Successfully built lynda-dl
Installing collected packages: lynda-dl
Attempting uninstall: lynda-dl
Found existing installation: lynda-dl 0.3
Uninstalling lynda-dl-0.3:
Successfully uninstalled lynda-dl-0.3
WARNING: The script lynda-dl is installed in '/home/pi/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed lynda-dl-0.3
➜ lynda-dl git:(master) ✗ /home/pi/.local/bin/lynda-dl
Traceback (most recent call last):
File "/home/pi/.local/bin/lynda-dl", line 5, in <module>
from lynda.lynda_dl import main
ModuleNotFoundError: No module named 'lynda.lynda_dl'
however if I do directly run it by python3 ./lynda-dl.py, it does work
this is a noob question and probably been asked before (although I couldn't find any)
when trying to install lynda-dl, I'm getting the following error
the
old script wrapper
happens cuz I upgraded pip3 with sudo (which I probably shouldn't do), however the installation failed for the exactly same reason before I've done the upgradehowever if I do directly run it by
python3 ./lynda-dl.py
, it does work