sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
5.99k stars 2.2k forks source link

Getting Started with pip install python-binance (installed c++, --upgrade tools) #677

Open jp-gaia opened 3 years ago

jp-gaia commented 3 years ago

2021-02-13 pip install python-binance error

I just want to read data from binance. I made an account in Binance, got my api_key and api_secret. Then from senttings, project interpreter, installed the python-binance package (already installed visual c++).

but during the installation of pip install python-binance, it appears the above.

Can anyone help about this? thanks

ohbob commented 3 years ago

same error. can't install.

JakobLewis commented 3 years ago

The version of Twister being used in python-binance was built for Python 3.6

See https://www.twistedmatrix.com/trac/ticket/9501

Edit: I've managed to successfully install python-binance and Twister separately, here's how;-

WARNING: STABILITY NOT GUARANTEED

  1. Download the raw python-binance files with git clone https://github.com/sammchardy/python-binance.git
  2. Remove both references to Twister in requirements.txt and setup.py
  3. Run pip3 --no-cache-dir install .

Very temporary fix, I think there's already a Twister dependency update pull

PromobyNW commented 3 years ago

Where can I find Microsoft Visual C++ 14.0? How big is the file? Any direct url to download it please