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
from binance.client import Client
ModuleNotFoundError: No module named 'binance'
[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 ?
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?
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
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.