0% found this document useful (0 votes)
6 views9 pages

Python 13

The document outlines Experiment No. 13, which involves creating an executable file from a Python program using PyInstaller. It details the installation of PyInstaller, the process of copying a Python script, and the steps taken to build the executable file, culminating in a successful output of 'code11.exe'. The executable performs basic arithmetic operations as demonstrated in the output section.

Uploaded by

rafikhot18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views9 pages

Python 13

The document outlines Experiment No. 13, which involves creating an executable file from a Python program using PyInstaller. It details the installation of PyInstaller, the process of copying a Python script, and the steps taken to build the executable file, culminating in a successful output of 'code11.exe'. The executable performs basic arithmetic operations as demonstrated in the output section.

Uploaded by

rafikhot18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Experiment no 13

Building an Executable File*:


Aim: Create a executable file for any program developed in earlier practical.
Requirement: Python Version - 3.13.0

Name: Yash Anant Kathore

Roll No: 50

Div: C

Branch: AI & Data Science

Output:
Microsoft Windows [Version 10.0.19045.5608]

(c) Microsoft Corporation. All rights reserved.

C:\Users\STUDENT>pip install pyinstaller

Defaulting to user installation because normal site-packages is not writeable

Requirement already satisfied: pyinstaller in c:\users\student\appdata\roaming\python\python313\


site-packages (6.12.0)

Requirement already satisfied: setuptools>=42.0.0 in c:\users\student\appdata\roaming\python\


python313\site-packages (from pyinstaller) (76.0.0)

Requirement already satisfied: altgraph in c:\users\student\appdata\roaming\python\python313\site-


packages (from pyinstaller) (0.17.4)

Requirement already satisfied: pyinstaller-hooks-contrib>=2025.1 in c:\users\student\appdata\roaming\


python\python313\site-packages (from pyinstaller) (2025.1)

Requirement already satisfied: packaging>=22.0 in c:\users\student\appdata\roaming\python\


python313\site-packages (from pyinstaller) (24.2)

Requirement already satisfied: pefile!=2024.8.26,>=2022.5.30 in c:\users\student\appdata\roaming\


python\python313\site-packages (from pyinstaller) (2023.2.7)

Requirement already satisfied: pywin32-ctypes>=0.2.1 in c:\users\student\appdata\roaming\python\


python313\site-packages (from pyinstaller) (0.2.3)
C:\Users\STUDENT>cd\

C:\>cd c:\users\student\appdata\roaming\python\python313

c:\Users\STUDENT\AppData\Roaming\Python\Python313>dir

Volume in drive C has no label.

Volume Serial Number is 7C2E-5FD1

Directory of c:\Users\STUDENT\AppData\Roaming\Python\Python313

03/13/2025 09:54 AM <DIR> .

03/13/2025 09:54 AM <DIR> ..

03/27/2025 01:23 PM <DIR> Scripts

04/02/2025 01:23 PM <DIR> site-packages

0 File(s) 0 bytes

4 Dir(s) 97,427,767,296 bytes free

c:\Users\STUDENT\AppData\Roaming\Python\Python313>cd scripts

c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts>dir

Volume in drive C has no label.

Volume Serial Number is 7C2E-5FD1

Directory of c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts
03/27/2025 01:23 PM <DIR> .

03/27/2025 01:23 PM <DIR> ..

12/09/2024 10:19 AM 11,513,971 10linkedlistprogram.rtf

01/20/2025 04:04 PM 256 4.py

11/26/2024 11:30 AM 456 8A.BAK

11/26/2024 11:23 AM 767 8B.BAK

11/26/2024 11:34 AM 806 9.BAK

03/27/2025 10:43 AM 1,306 area.py

03/27/2025 10:46 AM 694 area.spec

03/27/2025 10:46 AM <DIR> build

03/27/2025 10:46 AM <DIR> dist

03/27/2025 09:28 AM 108,391 f2py.exe

03/27/2025 09:28 AM 108,391 numpy-config.exe

03/13/2025 09:57 AM 108,398 pip.exe

03/13/2025 09:57 AM 108,398 pip3.13.exe

03/13/2025 09:57 AM 108,398 pip3.exe

03/13/2025 09:54 AM 108,415 pyi-archive_viewer.exe

03/13/2025 09:54 AM 108,410 pyi-bindepend.exe

03/13/2025 09:54 AM 108,413 pyi-grab_version.exe

03/13/2025 09:54 AM 108,409 pyi-makespec.exe

03/13/2025 09:54 AM 108,412 pyi-set_version.exe

03/13/2025 09:54 AM 108,426 pyinstaller.exe

18 File(s) 12,710,717 bytes

4 Dir(s) 97,427,767,296 bytes free


c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts>pip install pyinstaller

Defaulting to user installation because normal site-packages is not writeable

Requirement already satisfied: pyinstaller in c:\users\student\appdata\roaming\python\python313\


site-packages (6.12.0)

Requirement already satisfied: setuptools>=42.0.0 in c:\users\student\appdata\roaming\python\


python313\site-packages (from pyinstaller) (76.0.0)

Requirement already satisfied: altgraph in c:\users\student\appdata\roaming\python\python313\site-


packages (from pyinstaller) (0.17.4)

Requirement already satisfied: pyinstaller-hooks-contrib>=2025.1 in c:\users\student\appdata\roaming\


python\python313\site-packages (from pyinstaller) (2025.1)

Requirement already satisfied: packaging>=22.0 in c:\users\student\appdata\roaming\python\


python313\site-packages (from pyinstaller) (24.2)

Requirement already satisfied: pefile!=2024.8.26,>=2022.5.30 in c:\users\student\appdata\roaming\


python\python313\site-packages (from pyinstaller) (2023.2.7)

Requirement already satisfied: pywin32-ctypes>=0.2.1 in c:\users\student\appdata\roaming\python\


python313\site-packages (from pyinstaller) (0.2.3)

c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts>copy C:\Users\STUDENT\Desktop\
code11.py c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts

1 file(s) copied.

c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts>pyinstaller --onefile code11.py

1514 INFO: PyInstaller: 6.12.0, contrib hooks: 2025.1

1515 INFO: Python: 3.13.0

1559 INFO: Platform: Windows-10-10.0.19045-SP0

1560 INFO: Python environment: C:\Program Files\Python313

1561 INFO: wrote c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts\code11.spec

1618 INFO: Module search paths (PYTHONPATH):


['c:\\Users\\STUDENT\\AppData\\Roaming\\Python\\Python313\\Scripts\\pyinstaller.exe',

'C:\\Program Files\\Python313\\python313.zip',

'C:\\Program Files\\Python313\\DLLs',

'C:\\Program Files\\Python313\\Lib',

'C:\\Program Files\\Python313',

'C:\\Users\\STUDENT\\AppData\\Roaming\\Python\\Python313\\site-packages',

'C:\\Program Files\\Python313\\Lib\\site-packages',

'C:\\Users\\STUDENT\\AppData\\Roaming\\Python\\Python313\\site-packages\\setuptools\\_vendor',

'c:\\Users\\STUDENT\\AppData\\Roaming\\Python\\Python313\\Scripts']

2256 INFO: checking Analysis

2256 INFO: Building Analysis because Analysis-00.toc is non existent

2257 INFO: Running Analysis Analysis-00.toc

2259 INFO: Target bytecode optimization level: 0

2259 INFO: Initializing module dependency graph...

2274 INFO: Initializing module graph hook caches...

2421 INFO: Analyzing modules for base_library.zip ...

3511 INFO: Processing standard module hook 'hook-encodings.py' from 'C:\\Users\\STUDENT\\


AppData\\Roaming\\Python\\Python313\\site-packages\\PyInstaller\\hooks'

7354 INFO: Processing standard module hook 'hook-pickle.py' from 'C:\\Users\\STUDENT\\AppData\\


Roaming\\Python\\Python313\\site-packages\\PyInstaller\\hooks'

9566 INFO: Processing standard module hook 'hook-heapq.py' from 'C:\\Users\\STUDENT\\AppData\\


Roaming\\Python\\Python313\\site-packages\\PyInstaller\\hooks'

12402 INFO: Caching module dependency graph...

12437 INFO: Looking for Python shared library...

12466 INFO: Using Python shared library: C:\Program Files\Python313\python313.dll

12467 INFO: Analyzing c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts\code11.py

12471 INFO: Processing module hooks (post-graph stage)...


12476 INFO: Performing binary vs. data reclassification (1 entries)

12478 INFO: Looking for ctypes DLLs

12483 INFO: Analyzing run-time hooks ...

12484 INFO: Including run-time hook 'pyi_rth_inspect.py' from 'C:\\Users\\STUDENT\\AppData\\


Roaming\\Python\\Python313\\site-packages\\PyInstaller\\hooks\\rthooks'

12526 INFO: Creating base_library.zip...

12573 INFO: Looking for dynamic libraries

12687 INFO: Extra DLL search directories (AddDllDirectory): []

12687 INFO: Extra DLL search directories (PATH): []

13009 INFO: Warnings written to c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts\


build\code11\warn-code11.txt

13025 INFO: Graph cross-reference written to c:\Users\STUDENT\AppData\Roaming\Python\


Python313\Scripts\build\code11\xref-code11.html

13142 INFO: checking PYZ

13142 INFO: Building PYZ because PYZ-00.toc is non existent

13143 INFO: Building PYZ (ZlibArchive) c:\Users\STUDENT\AppData\Roaming\Python\Python313\


Scripts\build\code11\PYZ-00.pyz

13384 INFO: Building PYZ (ZlibArchive) c:\Users\STUDENT\AppData\Roaming\Python\Python313\


Scripts\build\code11\PYZ-00.pyz completed successfully.

13454 INFO: checking PKG

13454 INFO: Building PKG because PKG-00.toc is non existent

13455 INFO: Building PKG (CArchive) code11.pkg

15251 INFO: Building PKG (CArchive) code11.pkg completed successfully.

15253 INFO: Bootloader C:\Users\STUDENT\AppData\Roaming\Python\Python313\site-packages\


PyInstaller\bootloader\Windows-64bit-intel\run.exe

15253 INFO: checking EXE

15254 INFO: Building EXE because EXE-00.toc is non existent

15254 INFO: Building EXE from EXE-00.toc


15255 INFO: Copying bootloader EXE to c:\Users\STUDENT\AppData\Roaming\Python\Python313\
Scripts\dist\code11.exe

15904 INFO: Copying icon to EXE

16162 INFO: Copying 0 resources to EXE

16163 INFO: Embedding manifest in EXE

16721 INFO: Appending PKG archive to EXE

16826 INFO: Fixing EXE headers

18716 INFO: Building EXE from EXE-00.toc completed successfully.

18718 INFO: Build complete! The results are available in: c:\Users\STUDENT\AppData\Roaming\Python\
Python313\Scripts\dist

c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts>cd dist

c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts\dist>dir

Volume in drive C has no label.

Volume Serial Number is 7C2E-5FD1

Directory of c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts\dist

04/08/2025 12:56 PM <DIR> .

04/08/2025 12:56 PM <DIR> ..

03/27/2025 10:46 AM 7,202,661 area.exe

04/08/2025 12:56 PM 7,201,824 code11.exe

2 File(s) 14,404,485 bytes

2 Dir(s) 97,408,278,528 bytes free

c:\Users\STUDENT\AppData\Roaming\Python\Python313\Scripts\dist>code11.exe
Name of student: Yash Anant Kathore

Roll no: 50

Batch: C3

Branch: AI & Data Science

Current date and time is 2025-04-08 12:57:45.861152

**********************************************************************

Please select operation-

1.Add

2.Subtrat

3.Multiply

4.Divide

Select opertions from 1,2,3,4:1

Enter first number:3

Enter seond number:2

3+2=5

Select opertions from 1,2,3,4:2

Enter first number:4

Enter seond number:2

4-2=2

Select opertions from 1,2,3,4:3

Enter first number:5

Enter seond number:2

5 * 2 = 10

Select opertions from 1,2,3,4:4


Enter first number:5

Enter seond number:2

5 / 2 = 2.5

Select opertions from 1,2,3,4:

You might also like