Open In App

How to install python-binance Library on Windows?

Last Updated : 28 Feb, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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

  • Type the following command in your terminal

python

  • Now we import the library

import binance

  • If the library is imported without any errors we will check its version, if there is an error while importing the module then it means it is not installed properly.

binance.__version__


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

Similar Reads