Examples

Create a virtual environment

The following example creates a virtual environment. Packages can be added by specifying the parameter package.

from pyquickhelper.pycode import create_virtual_env
fold = "my_env"
if not os.path.exists(fold):
    os.mkdir(fold)
create_virtual_env(fold)

see file install_venv_helper.py

install SciTE

The function downloads the latest version of SciTE. It also changes some settings for Python (no tabs, Courier New as a police).

install_scite("my_folder_for_scite")

see file install_custom_scite.py

Installation from GitHub

ModuleInstall("pyquickhelper", "github", "sdpython").install(temp_folder="temp")

see file module_install.py

Prepare a standalone distribution

The function downloads everything. The installation of tools is still manual. Package installation is automated.

from pymyinstall import win_python_setup
from pymyinstall.packaged import ensae_fullset
list_modules = ensae_fullset()
win_python_setup(module_list=list_modules,
                 verbose=False,
                 download_only=False)

This works only for Windows.

see file win_setup_main.py