I am running in a venv that was created with python -m venv ./env
and I have installed pylint and other necessary modules for my project.
when I run pylint utils.py
I get the error
utils.py:5:0: E0401: Unable to import 'math' (import-error)
which is weird because it is finding other installed modules, but not something in the stdlib... I know there must be some kind of path issue somewhere but I can't figure out where it is.
my .pylintrc
file contains the following hook which was necessary to get it to not throw errors when importing stuff form the venv
[MASTER]
init-hook='sys.path = ["./env/bin/python", "./env/lib/python3.7/site-packages/", "./"]'