.. _l-example: Examples ======== .. contents:: .. _lm-Createavirtualenvironment: 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 :ref:`file install_venv_helper.py ` .. _lm-installSciTE: 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 :ref:`file install_custom_scite.py ` .. _lm-InstallationfromGitHub: Installation from GitHub ++++++++++++++++++++++++ :: ModuleInstall("pyquickhelper", "github", "sdpython").install(temp_folder="temp") see :ref:`file module_install.py ` .. _lm-Prepareastandalonedistribution: 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 :ref:`file win_setup_main.py `