Open In App

How to install python-binance Library on Windows?

In this article, we will be looking at the steps to install the python-binance library on windows. Python-binance is a python library used to automate interactions with Binance cryptocurrency exchange.

Installing python-binance library on windows

Follow the below steps to install python-binance library on windows:



Step 1: Check if Python is installed or not on your system. Here, we use the below command in the cmd/PowerShell terminal to check if the Python is already installed in the system or not. In case Python is already installed on your system then the output will be the current version of Python and if it is not installed it will throw an error. For installing python in your system refer to How to Install Python.

Type the following command in the PowerShell terminal



python –version

Output:

Python 3.8.10

Step 2: Enter the following command in your terminal to create a virtual environment (this is step is only necessary if you don’t want to install this library globally on your system).

virtualenv binan

Step 3: Now we will activate the virtual environment that we just created.

.\binan\Scripts\activate

Step 4: To install the python-binance library in this environment type the following command

pip install python-binance

Verifying python-binance library

Now we will verify the successful installation of the library

python

import binance

binance.__version__

Article Tags :