mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
8.07k stars 645 forks source link

pip install mps-youtube on windows results in no usable binary #1093

Closed airtonix closed 1 year ago

airtonix commented 4 years ago
 ~ > npx envinfo
npx: installed 1 in 5.589s

  System:
    OS: Windows 10 10.0.18363
    CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
    Memory: 507.81 MB / 15.92 GB
  Binaries:
    Node: 12.16.3 - C:\Program Files (x86)\Nodist\bin\node.EXE
    npm: 6.1.0 - C:\Program Files (x86)\Nodist\bin\npm.EXE
  Managers:
    pip3: 19.2.3
  Utilities:
    Git: 2.19.0.
    FFmpeg: 52.30. - C:\ProgramData\chocolatey\bin\ffmpeg.EXE
  Virtualization:
    Docker: 19.03.8 - C:\Program Files\Docker\Docker\resources\bin\docker.EXE
  IDEs:
    Sublime Text: 3126 - C:\Users\zenobius\appdata\local\scoop\shims\subl.EXE
    VSCode: 1.45.1 - C:\Program Files\Microsoft VS Code\bin\code.CMD
  Languages:
    Java: 1.8.0_192
    Python: 2.7.11
    Python3: 3.8.2
  Browsers:
    Edge: 44.18362.449.0
    Internet Explorer: 11.0.18362.1

I'm also using Powershell and not cmd.exe

 ~ > pip3 install colorama
Requirement already satisfied: colorama in c:\users\zenobius\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (0.4.3)
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 ~ > pip3 install --user youtube-dl --upgrade
Requirement already up-to-date: youtube-dl in c:\users\zenobius\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (2020.6.6)
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 ~ > pip3 install mps-youtube --upgrade
Requirement already up-to-date: mps-youtube in c:\users\zenobius\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (0.2.8)
Requirement already satisfied, skipping upgrade: pafy!=0.4.0,!=0.4.1,!=0.4.2,>=0.3.82 in c:\users\zenobius\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from mps-youtube) (0.5.5)
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 ~ > pip3 show mps-youtube
Name: mps-youtube
Version: 0.2.8
Summary: Terminal based YouTube player and downloader
Home-page: https://github.com/mps-youtube/mps-youtube
Author: np1
Author-email: np1nagev@gmail.com
License: UNKNOWN
Location: c:\users\zenobius\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages
Requires: pafy
Required-by:

So now I'd assume i can use the command.

So:

  1. close current terminal
  2. open a new one
  3. run the following:

 ~ > mpsyt
mpsyt : The term 'mpsyt' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ mpsyt
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (mpsyt:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
AyoungDukie commented 4 years ago

Personal workaround on this (I started to encounter after upgrading to Windows 10 on my work computer, FWIW) was to start the .exe directly from the command-line (or in my case, a batch script).

Either of these seem to work: start python.exe C:\Users\<Username>\AppData\Roaming\Python\Python38\Scripts\mpsyt.exe or start C:\Users\<Username>\AppData\Roaming\Python\Python38\Scripts\mpsyt.exe

Edit: Note the links may need to change to reflect your installed python version