0

I am trying to build executable using pyinstaller in mac os (python 3.7) , my file parser.py is using some of my other files in the same directory , code includes import as below :

from logparser import parsingutility as parseUtil

pyintsaller builds the executables , running it shows ModuleNotFoundError: No module named logparser.

I tried including directory path in --paths while building executable. Didn't work .

PRAGYA
  • 1
  • Worked after moving my parser.py out of my logparser directory and then providing path of logparser directory in --path arg of pyinstaller :) – PRAGYA Jun 28 '21 at 09:38

1 Answers1

0

Create separate environment using venv, and the rest is answered here

To create separate environment:

1. (in your project foler)

 $ python3 -m venv environment_name

this will create a folder environment_name in current directory.

2.

$ source project_name/bin/activate

to exit environment

$ deactivate