Every Module but Torch Will Import With Embedded Python

I’m trying to embed Python into a project I’m working on. Before embedding Python, the project is able to use my local install in this directory: C:\Users\Name\AppData\Local\Programs\Python\Python39. The project is able to run perfectly with this Python installation.

However, if I copy and paste the contents of the Python39 folder into my project, every module except for Torch is able to be imported. If I try to import Torch, the application freezes.

What could be causing this, and how would I fix it?