Apr-30-2020, 11:19 PM
Hi everyone,
I am relatively new to python but I am trying to use it more extensively for post-processing of fluid mechanics data.
I am currently working under Windows 10 and I am using Spyder (Python 3.7). I created my own module Plottings.py which contains some plotting functions. Once I created the module I copied it in: C:\Users\ThePhantom\AppData\Local\Programs\Python\Python38-32\Lib\site-packages
Now, wherever I am located if I open Spyder and type:
I appreciate your help. Thanks!
I am relatively new to python but I am trying to use it more extensively for post-processing of fluid mechanics data.
I am currently working under Windows 10 and I am using Spyder (Python 3.7). I created my own module Plottings.py which contains some plotting functions. Once I created the module I copied it in: C:\Users\ThePhantom\AppData\Local\Programs\Python\Python38-32\Lib\site-packages
Now, wherever I am located if I open Spyder and type:
import Plottings as myPlot myPlot.Pressing Tab I can actually see all the functions contained in Plottings (which means that the module is visible) BUT when I run it, it gave me back this error:
ModuleNotFoundError: No module named 'Plottings'The only way I could solve this problem is to include Plottings.py in the folder where I am running the test case.
I appreciate your help. Thanks!