Using external modules in psychopy

Hi! I am trying to use external modules in mac psychopy standalone version 2021.2.3.

I have tried two ways so far with out any luck:

  1. I directly copied the module folders into the psychopy folder. It can utilize some of the modules (e.g. gdx) but when it comes to a module that utilizes C language (called gdxcc), it stops working, error as below:

File “/Users/Documents/Python/scripts/task_lastrun.py”, line 48, in
from gdx import gdx
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gdx/init.py”, line 17, in
from .api import GDX, gdxcc, type_str, vartype_str
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gdx/api.py”, line 7, in
import gdxcc
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gdxcc/init.py”, line 1, in
from .gdxcc import *
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/gdxcc/gdxcc.py”, line 11, in
import _gdxcc
ModuleNotFoundError: No module named ‘_gdxcc’

  1. Alternatively, if I add the paths to the original modules in Psychopy Preferences, it cannot utilize any modules, error as below:

File “/Users/Documents/Python/scripts/task_lastrun.py”, line 48, in
from gdx import gdx
ModuleNotFoundError: No module named ‘gdx’

I wonder if anyone could help point some directions on how to solve this problem?

Thank you very much!