Ethereum: Syntax error while importing the module on Ubuntu 16.04

Here’s an article on the basis of a request:

Ethereum: Syntax Error During the Creation of Module Ubuntu 16.04

After the first phase of the examination, I decided to try the most famous implementation of Binance API -ja: Python -binance.

I use Python 3.5 with Ubuntu 16.04.

Ethereum: Syntax error while importing the module on Ubuntu 16.04

installation of the required packages

Before we continue, it is necessary to ensure that all the required packages are installed in the system. Here’s a step -by -step guide:

Install PIP (Python Package Manager)

For the first update of the package directory and install PIP:

`Bash

SUDO APT-GET update

SUDO APT-GET INSTALLY PYTHON3-PIP

`

Install Binance Python Library

Then we install the Python-Vinnance library with PIP. Complete the following command:

Bash

Python3 -m PIP Install Python -bin

`

Module import

Now that all of the necessary packages are installed, we will bring the module and try to complete the first script.

Update the installation of Binance Biblioteke Python (if necessary)

Make sure the installation is updated using:

Bash

PIP3 installation upgrade Python-Vinance

`

After the update module re -import:

Python

Imports of buckets

`

error message

Unfortunately, even when I installed the necessary packages and successfully brought the module, I came across a syntax error while trying to use it.

What happens?

The state of importingBinance ‘does not recognize my installation of Python 3.5. The subject is probably due to the fact that the library was installed on Python 3.6 or later in the system.

solutions

To solve this problem, try to update the PIP version to match Python-Vinance (which is Python 3.5). Driving:

`Bash

Python3 -m PIP -TONING -upgrade PIP

`

This should correct the error in the syntax and allow you to successfully bring the module.

Alternatively, you can also lower PIP installation for the use of an older Python version that supports Binance Binance Python:

Bash

SUDO APT-GET INSTALLY PYTHON3.5-PIP

PIP3 -thopus -upgrode Binance

``

When these steps are in place, you should be able to bring the “Binance” module without encountering syntax errors.

Tell me if this helps!