Python won't use .pth file

I am using Python 3.8.18 on Windows 11 with a .pth file in Anaconda3/envs/myenv/Lib/site-packages. When I run python and try to import the module which path is in the .pth file, I get the ModuleNotFoundError.