-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'binance.client'; 'binance' is not a package #477
Comments
Maybe you have python2 and python3 on your system? PIP has installed python-binance for python2 and your script runs with python3? try |
Same here, I've tried both 2 and 3 none of them worked. |
Same here, python3.6 not working |
If you're running the import statement from within a file called binance.py, this will be relevant for you |
Dear all,
|
Hi all .whl source file downloaded from here https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted |
Is this solved? |
Check this answer, if you have package or file named "binance" this error may occur. |
Yep, I realised I had a file binance.py in the same directory - after renaming that all good! |
I have this nad I installed everything correctly:
|
I just changed the value "include-system-site-packages" in the file pyvenv.cfg of my project from "false" to "true", and everything worked. |
I tried a lot of things already here on google but nothing was useful, then I tired pip install python-binance==0.7.5 instead of pip install python-binance==0.7.9, and I was successful to import " from binance.client import Client. Beside this, I also renamed my two binance.py files as binance.client.py, and it worked for me. You can find your binance.py files in your python3 site packages folder. Just go there and search binance.py, you will find it. That's all what I did successfully. If it is helpful for you , so kindly leave a comment. |
From me the solution was simple: ...\Anaconda3\envs"name of your your env"\lib\site-packages\binance.py |
this saved my life thank you |
A very simple fix for me...just make sure your python code IS NOT saved in a file called binance.py...i renamed mine and it worked smoothly, seems the module requires that filename and that creates some conflict. Hope this helps |
It is not working work me is this import deprecated ? I found this : from binance import Client, ThreadedWebsocketManager, ThreadedDepthCacheManager |
it worked after tried a lot of things. Thanks !! |
i cant still find a solution after trying all these |
Try : from binance.streams import BinanceSocketManager |
O nome do arquivo.py que você criou não pode se binance, mude para outro nome que funciona. |
ModuleNotFoundError: No module named 'binance.client'; 'binance' is not a package
I've just done: pip install python-binance.
please help!
The text was updated successfully, but these errors were encountered: