Please enable JavaScript to view this site.

GeoDict User Guide 2025

Adding Python Packages

To install additional Python packages click Add Python Package in the Macro Execution Control dialog.

AUTOMA~1_img73

Fill in the name of the desired Python package. Clicking Run installs the package automatically. Owning admin rights, it can be installed for all Users. If installed for all users, the package is installed in the GeoDict installation folder (e.g. C:\Program Files\Math2Market GmbH\GeoDict 2025\Python\lib\site-packages). If installed only on the local machine, it is installed to the Python folder inside the GeoDict settings folder (C:\Users\Username\GeoDict2025\Python). After installation, restart GeoDict to use the new package.

It is also possible, to install Python packages offline, if downloaded before. For this, run a Python macro. The macro must contain the following code:

InstallPyPackage_args = {

# define parameters dictionary

'Name' : 'dummy.whl',

# instead of dummy.whl enter

# the file path of the whl

# file to install

'Global' : False,

# Global is the key for the

# checkbox “Install for all

# Users”. False means, the box

# is not checked. If changed

# to True, Admin Rights are

# required to install for

# all users.

'Mode' : 'LocalInstall'}

# Select the mode LocalInstall

# to install the package offline

gd.runCmd("GeoDict:InstallPyPackage", InstallPyPackage_args)

# execute the installation

The Python dictionary containing these keys can also be obtained by installing a Python package using the button Add Python Package described above, while a macro is recorded as described here. Then, the value for Mode is 'Install'. The third mode, that can be selected is 'Download'. If a Python package should only be downloaded and not installed, use the installing Python package dictionary as follows:

InstallPyPackage_args = {  

# define parameters dictionary

'Name'   : 'openpyxl',

# instead of dummy enter the

# name of the Python package

# to download

'Global'  : False,

 

'Mode'   : 'Download'}

# Select the mode Download

# to only download the package

gd.runCmd("GeoDict:InstallPyPackage", InstallPyPackage_args)

# execute the download

 

©2025 created by Math2Market GmbH / Imprint / Privacy Policy