youtube-dl
告诉我要升级,因此我尝试了他们网站上给出的命令,但得到的输出听起来好像没有升级任何东西,尽管可以升级:
$ sudo pip install -U youtube-dl
Downloading/unpacking youtube-dl from https://pypi.python.org/packages/2.7/y/youtube_dl/youtube_dl-2016.02.05.1-py2.py3-none-any.whl#md5=2effdf3d1f12908c1d3fb27ab0035343
Downloading youtube_dl-2016.02.05.1-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Installing collected packages: youtube-dl
Found existing installation: youtube-dl 2016.1.15
Can't uninstall 'youtube-dl'. No files were found to uninstall.
Successfully installed youtube-dl
Cleaning up...
如何解决这个问题并真正获得最新版本?
答案1
这些命令起了作用:
$ sudo dpkg -r youtube-dl
(Reading database ... 332796 files and directories currently installed.)
Removing youtube-dl (2015.06.04.1-1) ...
Processing triggers for man-db (2.7.4-1) ...
$ sudo rm -rf /usr/local/share/doc/youtube_dl /usr/local/lib/python2.7/dist-packages/youtube_dl* /usr/local/bin/youtube-dl
$ sudo pip install --upgrade youtube-dl
Downloading/unpacking youtube-dl
Downloading youtube_dl-2016.02.05.1-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Installing collected packages: youtube-dl
Successfully installed youtube-dl