Python 2 has reached its end of life.
This add-on integrates legacy Python 2 inside the ddev-webserver
into your DDEV project.
It is only needed if your npm
setup requires Python 2 to build dependencies.
For DDEV v1.23.5 or above run:
ddev add-on get ddev/ddev-python2
ddev restart
For earlier versions of DDEV run:
ddev get ddev/ddev-python2
ddev restart
After installation, you can run Python 2:
python2.7
(installed at/usr/bin/python2.7
)python
(symlink topython2.7
installed at/usr/local/bin/python
)
This add-on also adds packages that are normally required for npm
build, see config.python2.yaml. Remove or replace the contents of this file if you only need Python 2.
Contributed and maintained by @stasadev