简体   繁体   English

如何将python-binance安装到anaconda3中?

[英]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.我在Anaconda3中激活我的环境,然后使用pip install python-binance python-binance pip3 安装 python-binance package。 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 .我单独设置环境: ...\Anaconda3\Lib\site-packages The binance folder is inside site-packages and client.py is inside: binance folder binance文件夹在site-packages里面,client.py 在里面: binance文件夹

Can someone help me with this?有人可以帮我弄这个吗?

You have to make 3 installations following next setps您必须在下一个 setps 之后进行 3 次安装

First of all, start installing pip with:首先,开始安装pip:

conda install pip

Second step:第二步:

conda install twisted

And finally:最后:

pip install python-binance

conda does not offer this library. conda 不提供这个库。 Therefore the best is to download it from the source and unzip and install into the folder: "...\\Anaconda3\\Lib\\site-packages"因此最好是从源代码下载并解压缩并安装到文件夹中:“...\\Anaconda3\\Lib\\site-packages”

PS: path should be set. PS:应该设置路径。

for me the easiest way was:对我来说,最简单的方法是:

  • open Anaconda Prompt (win button -> type: Anaconda Prompt)打开 Anaconda Prompt(获胜按钮 -> 类型:Anaconda Prompt)
  • "pip install python-binance" ->Thats all. “pip install python-binance”->仅此而已。
  • normaly pip is already installed. normaly pip 已经安装。 If not ->"conda install pip" and after this "pip install python-binance"如果不是 - >“conda install pip”,然后在“pip install python-binance”之后

KR韩国

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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