Import Your Python Modules in Unreal Engine by Making Python Scripts Discoverable by the Interpreter

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

ความคิดเห็น • 2

  • @NurettinBerkeDemirel
    @NurettinBerkeDemirel 9 หลายเดือนก่อน

    I want to add opencv, but when i try to add it i got
    LogPython: Error: Traceback (most recent call last):
    LogPython: Error: File "", line 1, in
    LogPython: Error: ModuleNotFoundError: No module named 'cv2'
    I added paths and i downloaded opencv-python in binaries>thirdparty>python3>win64

    • @techartcorner
      @techartcorner  9 หลายเดือนก่อน

      Hey, it's a bit different with PIP modules than with you own Unreal Python API code.
      You can try creating a plugin with module like in this tutorial: th-cam.com/video/IbwLyQtHw_o/w-d-xo.html
      But there may be also another way. I noticed that PythonFoundationPackages plugin has Content/Python/Lib folder with module wheels that are later installed into Project/Intermediate/PipInstalls
      It havent investigated it yet but it may be another valid way of installing modules into the project - the "Epic way" ;)