Last active
July 27, 2024 06:07
-
-
Save raspiduino/52b9f882e1b4eeba6bb5d3ae59224d20 to your computer and use it in GitHub Desktop.
How to install memgpt on Termux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install required Termux packages | |
apt update | |
apt install openssh openssl openssl-1.1 proot-distro | |
# Setup ssh (optional) | |
passwd # Type your password here | |
whoami # Get your username | |
ifconfig # Get your IP | |
# Add openssl-1.1 library to path (otherwise curl and other programs won't work) | |
# It might just be a bug in my particular installation of Termux | |
export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib/openssl-1.1/ | |
# Install proot distro (here we choose Debian) | |
pd install debian | |
pd login debian # Login to newly installed distro | |
# Install required Debian packages | |
apt install python3 python3-pip python3-numpy wget musl cmake build-essential --no-install-recommends | |
# Install MemGPT | |
pip3 install pymemgpt --break-system-packages | |
# Note: If you encouter any non-installable packages, expecially on armv7 devices, you can go to piwheels.org then manually download wheels and install it. | |
# Setup MemGPT (do it yourself) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment