No module named 'paraview' error in Visual studio code

Hello,

I am trying to make a python project in VS code which uses functions in pvpython.

I have tried the following code, but it still gives an error ‘No module named ‘paraview’’.

=================

sys.path.append('C:\\Program Files\\ParaView 5.12.0\\bin')
#import paraview
from paraview.simple import *

=================================

I would like to ask you how to use pvpython functions from external compilers like VS code.

Thank you.

Here is the tutorial
https://www.paraview.org/paraview-docs/latest/python/quick-start.html

The link is not working

https://www.paraview.org/paraview-docs/latest/python/quick-start.html

Hello,

I am still struggling with the error ‘no module named paraview’ in visual studio code. I am also trying to follow the tutorial ‘quick-start’.

At the beginning, the tutorial says

“To start interacting with the Server Manager, you have to load the “simple” module. This module can be loaded from any python interpreter as long as the necessary files are in PYTHONPATH. These files are the shared libraries located in the paraview binary directory and python modules in the paraview directory: paraview/simple.py, paraview/vtk.py etc.”

Here I have questions. Does ‘binary directory’ mean ‘C:\Program Files\ParaView 5.12.0\bin’ ? And what does ‘paraview directory’ mean? I am asking this since I could not find those files ‘simple.py’, and ‘vtk.py’. Please help me to find something I missed.

Thank you.