Supplementary repo for my "Python for PHP Developers: Deep Dive" series of articles, which explore Python in depth, but from a PHP developer's perspective:
- Python for PHP Developers: Deep Dive Part 1
- Python for PHP Developers: Deep Dive Part 2
- Python for PHP Developers: Deep Dive Part 3 (pending)
- Python for PHP Developers: Deep Dive Part 4 (pending)
This repo may prove useful for tinkering with the same Python code examples used in these articles.
In Ubuntu:
sudo apt update
sudo apt -y upgrade
# Confirm python 3.* is installed, else install it
python3 -V
# Get le friends too
sudo apt install -y python3-pip
sudo apt install -y build-essential libssl-dev libffi-dev python3-devInstall venv:
sudo apt install -y python3-venvClone this repo, and in the root directory, setup a virtual environment:
python3 -m venv envActivate the virtual environment:
source env/bin/activateTest run one of the .py files in this repo:
python3 code/01-hello.pyTo exit the virtual environment:
deactivate