Examples¶
Contents
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)
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")
Installation from GitHub¶
ModuleInstall("pyquickhelper", "github", "sdpython").install(temp_folder="temp")
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.