-
Notifications
You must be signed in to change notification settings - Fork 0
/
python.sh
executable file
·31 lines (25 loc) · 920 Bytes
/
python.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
mkdir ~/virtualenvs;
cd ~/virtualenvs;
sudo add-apt-repository ppa:deadsnakes/ppa;
sudo apt update;
sudo apt -y install python3.8 python3.8-venv python3.8-tk python-tk;
python3.8 -m venv 3.8;
sudo apt -y install virtualenv;
virtualenv -p python2.7 2.7;
source 2.7/bin/activate;
pip install --upgrade pip;
pip install setuptools==44.1.1 pathlib;
pip install Django numpy scipy matplotlib;
deactivate;
source 3.8/bin/activate;
pip install --upgrade pip;
pip install wheel pathlib;
pip install numpy scipy matplotlib ipython jupyter pandas requests wget flake8 pylint autopep8;
deactivate;
echo "alias 2='source ~/virtualenvs/2.7/bin/activate';
alias 3='source ~/virtualenvs/3.8/bin/activate';
alias 0='deactivate';
alias jp='source ~/virtualenvs/3.8/bin/activate; jupyter-notebook;';
alias pm='python manage.py makemigrations; python manage.py migrate; python manage.py runserver';
" >> ~/.bashrc;
source ~/.bashrc;