I'm trying to get Blender's Python library (bpy) working with VSCode, but for some reason, despite having the correct interpreter selected, VSCode cannot resolve the package. What's strange is that Jupyter autocomplete has no issues.
Other libraries, such as Numpy, import without any issues.
Note that BPY also imports several other modules, such as bmesh, bpy_types, and mathutils. None of those resolve either. The integrated terminal has no issues importing any of these packages.
Does anyone have any recommendations for how to force VSCode to recognize BPY?

I found this answer that solves your issue.
Basically, just:
pip install fake-bpy-module
See their README for a specific version of Blender.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With