Skip to main content

Python Setup

Python Activities needs Python to be installed in the system. We can use a virtual environment of Python also to automate Python activities.

Python Installation

Python Context activity supports Python version above 2.7. You can download Python from here:

https://www.python.org/downloads

Once you download the Windows x86-64 executable installer from the above link, during installation, ensure to check the Add Python \<\<Version>> to PATH option as depicted by the screenshot below:

Package Management for Installed Python

  • Go to the installation location of Python.
  • Open the location in Command Prompt.
  • Go to the Scripts folder
  • Run the command pip list to see the installed packages.
  • Run the command pip install <package-name> to install the needed package.

Python.Runtime.dll Creation

Python.Runtime.dll is the assembly for embedding Python with .NET

  • Go to the installation location of Python.
  • Open the location in Command Prompt.
  • Go to the Scripts folder
  • Run the command pip list to see the installed packages.
  • Run the command pip install pythonnet to generate the Python.Runtime.dll.
  • Go to the installation location of Python and navigate to \Lib\site-packages\pythonnet\runtime.Python.Runtime.dll will be available in that location.