diff --git a/docs/en/07-develop/09-udf.md b/docs/en/07-develop/09-udf.md index d7a3fbd032db1fffb536d1843c993d78ecd90f4f..51c4c112c0d05fcbbfc3d94bc9934a95b5a59f0b 100644 --- a/docs/en/07-develop/09-udf.md +++ b/docs/en/07-develop/09-udf.md @@ -667,7 +667,7 @@ grep 'sys path' taospyudf.log | tail -1 You may find that the default library search path is `/lib/python3/dist-packages` (just for example, it may be different in your system), but `moment` is installed to `/usr/local/lib/python3.8/dist-packages` (for example, it may be different in your system). Then we change the library search path of python UDF. -Check `sys.path` +Check `sys.path`, which must include the packages you install with pip3 command previously, as shown below: ```python >>> import sys @@ -683,6 +683,8 @@ UdfdLdLibPath /usr/lib/python3.8:/usr/lib/python3.8/lib-dynload:/usr/local/lib/p Save it, then restart `taosd`, using `systemctl restart taosd`, and test again, it will succeed this time. +Note: If your cluster consists of multiple `taosd` instances, you have to repeat same process for each of them. + ```sql taos> select ts, nextsunday(ts) from t; ts | nextsunday(ts) |