Last active
October 10, 2021 10:46
-
-
Save Nilanshrajput/5067429c9d8229809969b48b75fd81bb to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# orginal source https://gist.github.com/vbe0201/b85ec47bc198d1c8471acbf016922005/raw/get-python.sh | |
# (c) 2019 Valentin B. | |
# | |
# Open your terminal and enter the following command: | |
# wget https://gist.githubusercontent.com/Nilanshrajput/5067429c9d8229809969b48b75fd81bb/raw/9a17570afd5a949951209b403a26cf6a9e9d5def/bvt_env.sh && chmod +x bvt_env.sh && ./bvt_env.sh | |
apt update -y | |
apt upgrade | |
apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev | |
mkdir python_installation && cd python_installation | |
wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz | |
tar xzvf Python-3.9.1.tgz | |
rm -f Python-3.9.1.tgz | |
cd Python-3.9.1. | |
./configure --enable-optimizations | |
make -j 1 | |
make altinstall | |
cd ../.. | |
rm -rf python_installation | |
apt --purge remove build-essential checkinstall libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev -y | |
apt autoremove -y | |
apt clean | |
python3.9 -m pip install -U pip | |
echo '$alias pip="python3.9 -m pip"' >> ~/.bashrc | |
python3 -m venv venv | |
source venv/bin/activacte | |
wget https://raw.githubusercontent.com/OlorinSledge/Binance-volatility-trading-bot/main/requirements.txt | |
pip install -r requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment