My most used Python commands

Manually install a script

*that has a setup.py file. First cd to the folder and then do:

python setup.py install

Make a list of installed python packages

pip freeze

Installing Packages from PyPI

To install packages from PyPI – the Python Package Index you can do: To install the latest version of “SomeProject”:

pip install 'SomeProject'

To install a specific version:

pip install 'SomeProject==1.4'

To install greater than or equal to one version and less than another:

pip install 'SomeProject>=1,<2'

To install a version that’s “compatible” with a certain version:

pip install 'SomeProject~=1.4.2'

How to update the latest commits and changes from github?

pip install git+https://github.com/rg3/youtube-dl.git

Note that you need git for Windows for this to work.

youdube-dl commands

List available video quality:

youtube-dl -F https://www.youtube.com/watch?v=-6fjqMoV8QI

-F will list the availabe video resolutions. You will then get a list of different video resolutions. Each one of these are numbered. You can pick a reolution e.g -F 22.

You can also just go for the highest resolution by typling -`F` bestvideo+bestaudio How to add username and password credentials

youtube-dl https://webpage.com/video/1348 --username my@email.com --password passwordhere --verbose --write-sub --all-subs