from binance.spot import Spot
client = Spot()
# Get server timestamp
print(client.time())
I installed the module with the pip install command, but I get the “ModuleNotFoundError: No module named 'binance.spot'; 'binance' is not a package” error. Also, when I run the file with py extension in another directory, it works without errors.
When I type the pip list command, I can see it in the list.
2 versions of Python were installed. I uninstalled both 3.9 and 3.11. I cleaned the python framework folders in the Library folder and installed python 3.10.