Skip to content

Instantly share code, notes, and snippets.

@pjobson
Last active July 11, 2026 19:45
Show Gist options
  • Select an option

  • Save pjobson/25a775ff96b9c90352cb8caea7d272f6 to your computer and use it in GitHub Desktop.

Select an option

Save pjobson/25a775ff96b9c90352cb8caea7d272f6 to your computer and use it in GitHub Desktop.
Build Python 3.14.x Install - yt-dlp deprecation error
# If you're on an older version of linux with Python 3.10.x, you
# can do this to avoid the python deprecation warning.
# I was having some problems compliling correctly with the listed
# installation instructions, so I made this primarily for myself.
# Deprecated Feature: Support for Python version 3.10 has been deprecated. Please update to Python 3.11 or above
# Yes, this is for Linux geared towards Mint/Ubuntu. No, I don't know how to do Windows stuff, maybe install WSL.
# This installs python to /opt/python/3.14.6
# Add to .bashrc: alias yt-dlp="/opt/python/3.14.6/bin/python3.14 ~/.local/bin/yt-dlp "
# ^ update your yt-dlp path here
sudo apt install libsqlite3-dev
wget https://www.python.org/ftp/python/3.14.6/Python-3.14.6.tgz
tar xzf Python-3.14.6.tgz
rm Python-3.14.6.tgz
cd Python-3.14.6/
./configure \
--prefix=/opt/python/3.14.6/ \
--with-ensurepip=install \
--enable-optimizations \
--with-lto \
--with-computed-gotos \
--enable-shared \
--enable-loadable-sqlite-extensions
make -j "$(nproc)"
sudo make altinstall
# manditory LD_LIBRARY_PATH
echo -e "export LD_LIBRARY_PATH=/opt/python/3.14.6/lib:\$LD_LIBRARY_PATH\n" >> ~/.bashrc
# optional symlinks
sudo ln -s /opt/python/3.14.6/bin/python3.14 /opt/python/3.14.6/bin/python3
sudo ln -s /opt/python/3.14.6/bin/python3.14 /opt/python/3.14.6/bin/python
sudo ln -s /opt/python/3.14.6/bin/pip3.14 /opt/python/3.14.6/bin/pip3
sudo ln -s /opt/python/3.14.6/bin/pip3.14 /opt/python/3.14.6/bin/pip
# Optional install yt-dlp w/ curl_cffi for impersonation https://github.com/yt-dlp/yt-dlp#impersonation
/opt/python/3.14.6/bin/pip3.14 install "yt-dlp[default,curl-cffi]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment