polygon-io/client-python

ModuleNotFoundError: No module named 'polygon'

shankar-roy opened this issue · 4 comments

Describe the bug

Unable to find polygon module in Python 3.10.12

(py3.10.12-polygon.io) sroy@MSI:~/code/polygon.io-data$ pip install polygon-api-client
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: polygon-api-client in /home/sroy/.local/lib/python3.10/site-packages (1.13.7)
Requirement already satisfied: certifi<2025.0.0,>=2022.5.18 in /home/sroy/.local/lib/python3.10/site-packages (from polygon-api-client) (2024.6.2)
Requirement already satisfied: websockets<13.0,>=10.3 in /home/sroy/.local/lib/python3.10/site-packages (from polygon-api-client) (12.0)
Requirement already satisfied: urllib3<2.0.0,>=1.26.9 in /home/sroy/.local/lib/python3.10/site-packages (from polygon-api-client) (1.26.19)

py3.10.12-polygon.io) sroy@MSI:~/code/polygon.io-data$ python3 polygonStockPrices.py
Traceback (most recent call last):
File "/home/sroy/code/polygon.io-data/polygonStockPrices.py", line 12, in
from polygon import RESTClient
ModuleNotFoundError: No module named 'polygon'

To Reproduce

Looks like a wsl issue.
Cannot install packages without sudo.

Hey @shankar-roy, were you able to get this working? Did installing with sudo resolve the issue? Also, I'm not sure what "WSI" means. Could you clarify that for me? Thanks!

https://learn.microsoft.com/en-us/windows/wsl/install, linux subsystem for windows. doesn't have to do with polygon in this case

Perfect, thanks for the clarification @SuperMaZingCoder. @shankar-roy I'm going to close this as a non-bug but if you see something else please let me know.