Im on Ubuntu 20.4. When I execute a python script, I get the following error. error and sys.path
I installed the packages with pip3 and they are located in
/usr/local/lib/python3.8/dist-packages
When I look at the installed packages for python3 and python3.8 interpreter, I see "binance" package installed and recognized. recognized packages
I tried to set PYTHONPATH to point to my project folder, but that didnt help either.
echo $PYTHONPATH --> /algos_python
Can somebody help me out here? I can't get my head around the problem.
CodePudding user response:
You have installed binance
from PYPI but you are not using it. You are using python-binance
and you need to install it. (Using python3 -m pip install python-binance
) and then run your code again. See this for more info on this.
CodePudding user response:
Try these:
python3 -m pip install python-binance
- If you are calling your file
binance.py
(Or have a file/folder named that in your directory), and then trying to import frombinance.client
, python will look in yourbinance.py
file instead of the library. So try renaming your local file.