Skip to content
Sign upLog in
← Back to Community
can't import binance package although its installed
Profile icon
[deleted]

pls help

I have a simple code and I'm using the binance package
I'm using binance==0.3 and binance-client==1.0.0

code:
from binance.client import Client
from binance.enums import *

when I try to run my code I get this error

File "main.py", line 7, in
from binance.client import Client
ModuleNotFoundError: No module named 'binance'

Comments
hotnewtop
Profile icon
JBFerrer

I had that same problem. I solve it by un installing all libraries named "binance" and the installing the one that i need on the program, i use spyder. I mean, try in your "cmd" to do "pip uninstall binance" and also "pip uninstall python-binance", then enter in the enviroment or lenguague you are using to code and in the console of that enviroment or lenguague write "pip install python-binance". Problem solved ;). I use spyder as enviroment or lenguage.

Profile icon
[deleted]

Screen Shot 2021-08-01 at 20.24.05

Profile icon
CosmicBear

How did you install it? Can you please provide more context?

Profile icon
[deleted]

@CosmicBear
, yes. i installed it from the packages tab

Profile icon
MrVoo

You need to import it from the packages tab too

Profile icon
[deleted]

@MrVoo
what do you mean ?
more then import binance ?

Profile icon
MrVoo

@NimrodGrinberg
Yes, go to the packages tab (looks like a cube) and search for biance, then add it.

Profile icon
[deleted]

@MrVoo
of course I did it ....
I know what's my problem.
on my local machine i had the same thing and to solve it I had to change
include-system-site-packages to false in the pyvenv.cfg file .
where can I do it in repl?

Profile icon
MrVoo

@NimrodGrinberg
I don't know what a pyvenv.cfg is sooo sorry :P