ModuleNotFoundError: No module named 'binance'
See original GitHub issueTrying to access the binance API.
from binance.client import client client = client(api_key, api_secret)
But I get this error :
D:\Users\username\Desktop\pyproject>get_data.py Traceback (most recent call last): File “D:\Users\username\Desktop\pyproject\get_data.py”, line 1, in <module> from binance.client import client ModuleNotFoundError: No module named ‘binance’
Everything was installed as expected. Using pip install python-binance command
There is a binance directory in …\site-packages\
System paths for python using import sys sys.path are :
[‘’,
‘D:\Users\username\AppData\Local\Programs\Python\Python38\python38.zip’,
‘D:\Users\username\AppData\Local\Programs\Python\Python38\DLLs’,
‘D:\Users\username\AppData\Local\Programs\Python\Python38\lib’,
‘D:\Users\username\AppData\Local\Programs\Python\Python38’,
‘D:\Users\username\AppData\Local\Programs\Python\Python38\lib\site-packages’,
‘D:\Users\username\AppData\Local\Programs\Python\Python38\lib\site-packages\win32’,
‘D:\Users\username\AppData\Local\Programs\Python\Python38\lib\site-packages\win32\lib’,
‘D:\Users\username\AppData\Local\Programs\Python\Python38\lib\site-packages\Pythonwin’]
I have tried everything.
Please help ! Thank you
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top Related StackOverflow Question
I had the exact same issue today, hopefully this will help you too. I realised it was because I had named my file binance.py !!! Why do stupid errors take the longest to unpick.
When installing with python3.9 on Ubuntu 20.04.2 LTS I ran into the same error listed here. Steps to resolve were:
sudo apt-get updatesudo apt-get upgradesudo apt install python3.9-devpip install python-binanceAll worked as intended afterwards