scdl-org / scdl

Soundcloud Music Downloader
GNU General Public License v2.0
3.29k stars 331 forks source link

zsh: command not found: scdl #465

Open jexica-dev opened 5 months ago

jexica-dev commented 5 months ago

on a macOS Sonoma 14.31.1. I brew install ffmpeg and get zsh: command not found: scdl

I tried pip3 install and get Requirement already satisfied: scdl in ./Library/Python/3.12/lib/python/site-packages (2.7.3)

still, I get the same error. do you think it's my PATH? (noob here)

CharlesAttend commented 3 months ago

don't you have a pip warning for adding the directory to path ?

jamesryan-dev commented 1 month ago
╭─   ~
╰─❯ scdl https://soundcloud.com/sandervandoorn/sander-van-doorn-oliver-heldens-this-original-mixout-now
zsh: command not found: scdl

╭─   ~
╰─❯ pip3 install scdl
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: scdl in ./Library/Python/3.9/lib/python/site-packages (2.11.4)
Requirement already satisfied: mutagen>=1.45.0 in ./Library/Python/3.9/lib/python/site-packages (from scdl) (1.47.0)
Requirement already satisfied: soundcloud-v2>=1.5.2 in ./Library/Python/3.9/lib/python/site-packages (from scdl) (1.6.0)
Requirement already satisfied: tqdm in ./Library/Python/3.9/lib/python/site-packages (from scdl) (4.66.5)
Requirement already satisfied: docopt-ng in ./Library/Python/3.9/lib/python/site-packages (from scdl) (0.9.0)
Requirement already satisfied: pathvalidate in ./Library/Python/3.9/lib/python/site-packages (from scdl) (3.2.0)
Requirement already satisfied: requests in ./Library/Python/3.9/lib/python/site-packages (from scdl) (2.32.3)
Requirement already satisfied: filelock>=3.0.0 in ./Library/Python/3.9/lib/python/site-packages (from scdl) (3.15.4)
Requirement already satisfied: termcolor in ./Library/Python/3.9/lib/python/site-packages (from scdl) (2.4.0)
Requirement already satisfied: typing-extensions in ./Library/Python/3.9/lib/python/site-packages (from scdl) (4.12.2)
Requirement already satisfied: python-dateutil>=2.8.2 in ./Library/Python/3.9/lib/python/site-packages (from soundcloud-v2>=1.5.2->scdl) (2.9.0.post0)
Requirement already satisfied: dacite>=1.8.1 in ./Library/Python/3.9/lib/python/site-packages (from soundcloud-v2>=1.5.2->scdl) (1.8.1)
Requirement already satisfied: six>=1.5 in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages (from python-dateutil>=2.8.2->soundcloud-v2>=1.5.2->scdl) (1.15.0)
Requirement already satisfied: charset-normalizer<4,>=2 in ./Library/Python/3.9/lib/python/site-packages (from requests->scdl) (3.3.2)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./Library/Python/3.9/lib/python/site-packages (from requests->scdl) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in ./Library/Python/3.9/lib/python/site-packages (from requests->scdl) (2024.7.4)
Requirement already satisfied: idna<4,>=2.5 in ./Library/Python/3.9/lib/python/site-packages (from requests->scdl) (3.7)
WARNING: You are using pip version 21.2.4; however, version 24.2 is available.
You should consider upgrading via the '/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip' command.

╭─   ~
╰─❯ scdl -me
zsh: command not found: scdl

╭─   ~
╰─❯ sudo /Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip

Password:
WARNING: The directory '/Users/jamesryan/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Requirement already satisfied: pip in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages (21.2.4)
Collecting pip
  Downloading pip-24.2-py3-none-any.whl (1.8 MB)
     |████████████████████████████████| 1.8 MB 3.7 MB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.2.4
    WARNING: Value for bin_prefix does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
    distutils: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin
    sysconfig: /usr/local/bin
    WARNING: Additional context:
    user = False
    home = None
    root = None
    prefix = None
    Uninstalling pip-21.2.4:
      Successfully uninstalled pip-21.2.4
Successfully installed pip-24.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

╭─   ~                                                                                                                                                                         took  4s
╰─❯ scdl -me
zsh: command not found: scdl

╭─   ~
╰─❯ pip3 install scdl
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: scdl in ./Library/Python/3.9/lib/python/site-packages (2.11.4)
Requirement already satisfied: docopt-ng in ./Library/Python/3.9/lib/python/site-packages (from scdl) (0.9.0)
Requirement already satisfied: mutagen>=1.45.0 in ./Library/Python/3.9/lib/python/site-packages (from scdl) (1.47.0)
Requirement already satisfied: termcolor in ./Library/Python/3.9/lib/python/site-packages (from scdl) (2.4.0)
Requirement already satisfied: requests in ./Library/Python/3.9/lib/python/site-packages (from scdl) (2.32.3)
Requirement already satisfied: tqdm in ./Library/Python/3.9/lib/python/site-packages (from scdl) (4.66.5)
Requirement already satisfied: pathvalidate in ./Library/Python/3.9/lib/python/site-packages (from scdl) (3.2.0)
Requirement already satisfied: soundcloud-v2>=1.5.2 in ./Library/Python/3.9/lib/python/site-packages (from scdl) (1.6.0)
Requirement already satisfied: filelock>=3.0.0 in ./Library/Python/3.9/lib/python/site-packages (from scdl) (3.15.4)
Requirement already satisfied: typing-extensions in ./Library/Python/3.9/lib/python/site-packages (from scdl) (4.12.2)
Requirement already satisfied: dacite>=1.8.1 in ./Library/Python/3.9/lib/python/site-packages (from soundcloud-v2>=1.5.2->scdl) (1.8.1)
Requirement already satisfied: python-dateutil>=2.8.2 in ./Library/Python/3.9/lib/python/site-packages (from soundcloud-v2>=1.5.2->scdl) (2.9.0.post0)
Requirement already satisfied: charset-normalizer<4,>=2 in ./Library/Python/3.9/lib/python/site-packages (from requests->scdl) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./Library/Python/3.9/lib/python/site-packages (from requests->scdl) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./Library/Python/3.9/lib/python/site-packages (from requests->scdl) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in ./Library/Python/3.9/lib/python/site-packages (from requests->scdl) (2024.7.4)
Requirement already satisfied: six>=1.5 in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages (from python-dateutil>=2.8.2->soundcloud-v2>=1.5.2->scdl) (1.15.0)

╭─   ~
╰─❯ scdl -me
zsh: command not found: scdl

I am experiencing the same thing on a M3 macbook

installed via Pip3, tried Github Repo install

Came here and saw your comment so addressed the Pip3 version but the command continues to not be found