Open In App

How to Install pywin32 on Windows?

Last Updated : 22 Sep, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

Pywin32 is a Python extension for windows that is used to access Windows API.  In this article, we will look into the process of installing Pywin32 on a windows machine.

Pre-requisites:

The only thing that you need for installing Numpy on Windows are:

Installing Pywin32 on Windows using Conda:

If you want the installation to be done through conda,  open up the Anaconda Powershell Prompt and use the below command:

conda install -c anaconda pywin32

Type y for yes when prompted.

You will get a similar message once the installation is complete:

Installing Pywin32 on Windows using Conda

Make sure you follow the best practices for installation using conda as:

  • Use an environment for installation rather than in the base environment using the below command:
conda create -n my-env
conda activate my-env

Note: If your preferred method of installation is conda-forge, use the below command:

conda config --env --add channels conda-forge

Verifying Pywin32 Installation on Windows using Conda:

To verify if Pywin32 has been successfully installed in your system run the below command in Anaconda Powershell Prompt:

conda list pywin32

You’ll get the below message if the installation is complete:

Verifying Pywin32 Installation on Windows using Conda

Installing Pywin32 on Windows using PIP:

If you want the installation to be done through PIP,  open up the Command Prompt and use the below command:

pip install pywin32 

You will get a similar message once the installation is complete:

Installing Pywin32 on Windows using PIP

Verifying Pywin32 Installation on Windows using PIP:

To verify if the Pywin32 has been successfully installed in your system run the below command in Command Prompt:

python -m pip show pywin32 

Verifying Pywin32 Installation on Windows using PIP

You’ll get the below message if the installation is complete:


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads