# No module named 'paraview' error in Visual studio code

**URL:** https://discourse.paraview.org/t/no-module-named-paraview-error-in-visual-studio-code/14955
**Category:** ParaView Support
**Created:** [June 28, 2024, 4:55pm UTC](https://discourse.paraview.org/t/no-module-named-paraview-error-in-visual-studio-code/14955 "2024-06-28T16:55:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mdev](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@mdev](https://discourse.paraview.org/u/mdev)
#### Post date: [June 28, 2024, 4:55pm UTC](https://discourse.paraview.org/t/no-module-named-paraview-error-in-visual-studio-code/14955/1 "2024-06-28T16:55:15Z")

</div>

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’’.

```auto
=================

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.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 2, 2024, 9:18am UTC](https://discourse.paraview.org/t/no-module-named-paraview-error-in-visual-studio-code/14955/2 "2024-07-02T09:18:18Z")

</div>

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

---

<div class="post-metadata">

### Author: ![marhatom](https://discourse.paraview.org/user_avatar/discourse.paraview.org/marhatom/32/14108_2.png) [@marhatom](https://discourse.paraview.org/u/marhatom)
#### Post date: [September 9, 2024, 6:45pm UTC](https://discourse.paraview.org/t/no-module-named-paraview-error-in-visual-studio-code/14955/3 "2024-09-09T18:45:37Z")

</div>

The link is not working

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 10, 2024, 7:49am UTC](https://discourse.paraview.org/t/no-module-named-paraview-error-in-visual-studio-code/14955/4 "2024-09-10T07:49:28Z")

</div>

[https://www.paraview.org/paraview-docs/latest/python/quick-start.html](https://www.paraview.org/paraview-docs/latest/python/quick-start.html)

---

<div class="post-metadata">

### Author: ![mdev](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@mdev](https://discourse.paraview.org/u/mdev)
#### Post date: [November 7, 2024, 7:12pm UTC](https://discourse.paraview.org/t/no-module-named-paraview-error-in-visual-studio-code/14955/5 "2024-11-07T19:12:48Z")

</div>

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.
