Closed mobiuscoffee closed 9 years ago
Try pip install --upgrade soundcloud-cli
.
I tried it earlier, but I just tried it again:
$ pip install --upgrade soundcloud-cli
Requirement already up-to-date: soundcloud-cli in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: soundcloud in /usr/local/lib/python2.7/dist-packages (from soundcloud-cli)
Requirement already up-to-date: requests>=0.14.0 in /usr/local/lib/python2.7/dist-packages (from soundcloud->soundcloud-cli)
Requirement already up-to-date: fudge==1.0.3 in /usr/local/lib/python2.7/dist-packages (from soundcloud->soundcloud-cli)
Requirement already up-to-date: simplejson>=2.0 in /usr/local/lib/python2.7/dist-packages (from soundcloud->soundcloud-cli)
$ sc -v
sc 0.2.6
What does which sc
report? Is it pointed to the version you just installed?
$ which sc
/usr/local/bin/sc
I'm not sure how to tell if it's pointed to the version I just installed. How would I check that?
Check if it's a symlink or the file that was just installed:
› ls -l `which sc`
-rwxr-xr-x 1 zk admin 199 Jul 7 16:32 /usr/local/bin/sc*
Not a symlink, so check contents:
› cat `which sc`
#!/usr/local/opt/python/bin/python2.7
# EASY-INSTALL-SCRIPT: 'soundcloud-cli==0.2.7','sc'
__requires__ = 'soundcloud-cli==0.2.7'
__import__('pkg_resources').run_script('soundcloud-cli==0.2.7', 'sc')
Everything is good.
I put in those commands, but I'm not sure what it means. cat which sc
gave me a slightly different output:
$ ls -l `which sc`
-rwxr-xr-x 1 root root 60 juil. 9 21:51 /usr/local/bin/sc
$ cat `which sc`
#!/usr/bin/python
from soundcloud_cli import cli
cli.main()
You probably have multiple versions installed try to do pip uninstall soundcloud-cli
until you see:
› pip uninstall soundcloud-cli
Cannot uninstall requirement soundcloud-cli, not installed
Manually rm
the file in /usr/local/bin
and install again.
Confirmed fixed!
sc -v
sc 0.2.7
I updated, or at least I think I updated, soundcloud-cli with pip, but
sc -v
still says it's 0.2.6I tried fully uninstalling and reinstalling the program, but nothing changed.