Ask coding questions

← Back to all posts
can't import binance package although its installed
[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 <module>
from binance.client import Client
ModuleNotFoundError: No module named 'binance'

Comments
hotnewtop
[deleted]

CosmicBear

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

[deleted]

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

MrVoo

You need to import it from the packages tab too

[deleted]

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

MrVoo

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

[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?

MrVoo

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