ModuleNotFound using virtualenv

Hello,

I’m installing Python to a new PC and am having some problems.

My system:

  • OS: MS Windows 2025 Datacenter v24H2 (OS Build 26100.6584)
  • Our Python 3.14 is installed on our c: drive while our programs are on our E: drive.
  • I made a Python 3.14 project using virtualenv and activated the environment.
  • This Python program was working last week now I get a “Module not found” error for pandas when I run it from a batch file even though the project environment is activated. The batch file will later be called from Task Scheduler but I have to get the batch file to work when run manually first.
  • Extra non-standard Python modules are installed locally to the project dir.
  • When I do pip list I see pandas is installed for this project along with the other modules I need.
  • My %PATH% has this as the first entry: E:\MyJobs\Test\piecework\.venv\Scripts;The %PATH% also includes several directories to Python on the C: drive. I have confirmed pandas is installed in E:\MyJobs\Test\piecework\.venv\Lib\site-packages;but this dir is not in the path.
  • I checked .venv\scripts\activate.bat and it does not set up any path to E:\MyJobs\Test\piecework\.venv\Lib\site-packages;

Should E:\MyJobs\Test\piecework\.venv\Lib\site-packages; be in my path when I activate the environment? Why is it not in my path?

How do I fix this project?

Thank you for your help.

This has been fixed by using the local Python to run the program in my E: drive project dir, not the global python on our C: drive. The environment was activated for this project which uses the local python in .venv\scripts\python.exe as .venv\scripts\ becomes first in the %PATH% variable.

To view the path on Windows Terminal do: echo %PATH%.