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.
ddev add-on get stasadev/ddev-python2
ddev restartAfter installation, make sure to commit the .ddev directory to version control.
| Command | Description |
|---|---|
ddev exec python2.7 |
Run Python 2.7.18 inside the web container.Installed at /usr/bin/python2.7 |
ddev exec python |
Run Python 2.7.18 inside the web container.Symlink at /usr/local/bin/python |
This add-on also installs the build-essential package, which is usually required for the 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