VM network configuration In windows 10

  1. wi fi properities / ICS (internet connection sharing)
  2. choose VMnet8(NAT) LAN card

In CentOs 7

vi /etc/sysconfig/network-scripts/ifcfg-ens33
ONBOOT=yes
ifup  ens33
ifup ens33
firewall-cmd --list-all
firewall-cmd --get-active-zones
firewall-cmd --zone=public --add-port=8000/tcp --permanent
## allow ssh to access XSHELL 
firewall-cmd --zone=public --add-port=22/tcp --permanent

reference

Install the necessary utilities

sudo yum update
sudo yum install yum-utils
sudo yum groupinstall development     

Install Python 3.6.1

sudo yum install https://centos7.iuscommunity.org/ius-release.rpm
sudo yum install python36u
python3.6 -V
sudo yum install python36u-pip
sudo yum install python36u-devel
# if ubuntu use below
sudo apt-get install python3.6-venv

# This should return the system Python version
python –V
# output:
Python 2.7.5

# This should return the Python 3 version
python3.6 –V
# output:
Python 3.6.1

That’s it. Now I have Python 3.6 ready torun my apps!

Creating a virtualenv


python3.6 -m venv venv

To activate the virtualenv and start installing packages with pip:

. venv/bin/activate
pip install [package_name]
pip install -r requirements.txt