0

Hi im trying to convert my python file into an exe. With the guide im following, i have to find the location of python scripts file. This apparently so i can install pyinstaller to turn my .py in an exe.

How would i find the location of python scripts file?

Iā€™m on python 3 on windows

stackuser7
  • 21
  • 4

2 Answers2

1

I would recommend that you use auto-py-to-exe instead, to install this type:

pip3 install auto-py-to-exe

Next just type:

auto-py-to-exe

Into the terminal and it will be pretty straightforward from then on.

AyanSh
  • 306
  • 10
1

On the cmd line (or terminal) type

where python

or run this in a script:

import sys
import os
print(os.path.dirname)
print(os.path.dirname(sys.executable))
Windy71
  • 577
  • 3
  • 15