简体   繁体   中英

How to install python-binance into anaconda3?

I activate my environment in the Anaconda3 and then install python-binance package using pip install python-binance or pip3. Then I try to import it:

from binance.client import Client 

But there is an error message:

 "ModuleNotFoundError: No module named 'binance'"

I set environment separately: ...\Anaconda3\Lib\site-packages . The binance folder is inside site-packages and client.py is inside: binance folder

Can someone help me with this?

You have to make 3 installations following next setps

First of all, start installing pip with:

conda install pip

Second step:

conda install twisted

And finally:

pip install python-binance

conda does not offer this library. Therefore the best is to download it from the source and unzip and install into the folder: "...\\Anaconda3\\Lib\\site-packages"

PS: path should be set.

for me the easiest way was:

  • open Anaconda Prompt (win button -> type: Anaconda Prompt)
  • "pip install python-binance" ->Thats all.
  • normaly pip is already installed. If not ->"conda install pip" and after this "pip install python-binance"

KR

conda install -c conda-forge python-binance

https://anaconda.org/conda-forge/python-binance

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM