Skip to content

Instantly share code, notes, and snippets.

@MkDierz
Last active September 19, 2025 03:48
Show Gist options
  • Save MkDierz/ef3a116ccf13eefb102a640a109a4266 to your computer and use it in GitHub Desktop.
Save MkDierz/ef3a116ccf13eefb102a640a109a4266 to your computer and use it in GitHub Desktop.
Script to install ta lib in google colab
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "Djk81coUFRQt"
},
"outputs": [],
"source": [
"# download TA-Lib\n",
"!wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz\n",
"import os\n",
"os.chdir('ta-lib') # Can't use !cd in co-lab\n",
"!./configure --prefix=/usr\n",
"!make\n",
"!make install\n",
"# wait ~ 30s\n",
"os.chdir('../')\n",
"!pip install TA-Lib"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment