4 Prepare Python and Pandarallel in GCP VM - arwankhoiruddin/hadoopLab GitHub Wiki

Kill apt

We need to kill apt to prevent the use of apt for updating process

sudo killall apt apt-get

Install python

sudo apt-get install python

Check python version

python

Output

Python 2.7.17 (default, Feb 27 2021, 15:10:58) 
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Install pip

sudo apt-get install python-pip

Install scipy

sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose

Install Pandarallel

pip install pandarallel

Install scikit-learn

pip install scikit-learn