r/learnpython • • 14d ago

Title: Windows Smart App Control is blocking Pandas compiled extension files (.pyd) ?

I'm having a problem running Python libraries, particularly Pandas, on my Windows 11 machine. I've been troubleshooting this for a while, and it appears that Windows Smart App Control (SAC) is blocking some of Pandas' compiled extension files.

My environment:

  • Windows 11 (appears to be an Insider build)

  • Python 3.14.6

  • Pandas 3.1.1

  • NumPy 2.5.4

  • VS Code with Python and Jupyter extensions

  • Virtual environment created using venv

The error I'm getting:

ImportError: DLL load failed while importing fields:
An Application Control policy has blocked this file.

The blocked file is:

pandas_libs\tslibs\fields.cp314-win_amd64.pyd

Interestingly, the error occurs even when I try importing Pandas directly from CMD:

python -c "import pandas as pd; print(pd.__version__)"
0 Upvotes

Duplicates