How to Install Spire.Presentation for Python on Windows

Spire.Presentation for Python is a Python library for reading, creating, editing and converting PowerPoint (.ppt or .pptx) files in any Python application. This article shows you how to install Spire.Presentation for Python on Windows.

Step 1

Download the latest version of Python and install it on your computer. If you have already installed it, skip to step 2.

How to Install Spire.Presentation for Python in VS Code

Step 2

Click "Extensions" in VS Code, search for "Python" and then install it.

How to Install Spire.Presentation for Python in VS Code

Step 3

Click "Explorer" - "NO FOLRDER OPENED" - "Open Folder".

How to Install Spire.Presentation for Python in VS Code

Choose an existing folder as the workspace, or you can create a new folder and then select it.

How to Install Spire.Presentation for Python in VS Code

Add a .py file to the folder you just added (Python folder in this case), and name it whatever you like.

How to Install Spire.Presentation for Python in VS Code

Step 4

Click "Terminal" and then "New Terminal".

How to Install Spire.Presentation for Python in VS Code

Input the following pip command to install Spire.Presentation for Python and plum-dispatch v1.7.4.

pip install Spire.Presentation

How to Install Spire.Presentation for Python in VS Code

Alternatively, you can download Spire.Presentation for Python from our website,  and unzip it to get two .whl files from the "lib" folder. They're for Linux system and Windows system respectively.

How to Install Spire.Presentation for Python in VS Code

After that, install Spire.Presentation for Python and plum-dispatch v1.7.4 by running the following pip command.

pip install E:\Library\Python\spire.presentation.python_8.8.3\lib\Spire.Presentation-8.8.3-py3-none-win_amd64.whl

How to Install Spire.Presentation for Python in VS Code

Step 5

Add the following code snippet to the "HelloWorld.py" file.

How to Install Spire.Presentation for Python in VS Code

Once you run the Python file, you'll see the result PowerPoint document in the "EXPORER" panel.

How to Install Spire.Presentation for Python in VS Code