Install PIP
The Python3 version does not have PIP installed by default.
Copy the contents of get-pip.py: https://bootstrap.pypa.io/get-pip.py
Run in a python environment.
C:\python36>python.exe get-pip.py
Collecting Pip
Downloading PIP-9.0.3-PY2.PY3-NONE-ANY.WHL (1.4MB)
100% |████████████████████████████████| 1.4MB 42kb/s
Collecting wheel
Downloading WHEEL-0.30.0-PY2.PY3-NONE-ANY.WHL (49kB)
100% |████████████████████████████████| 51kB 44kb/s
Installing collected Packages:pip, wheel
Found existing Installation:pip 9.0.1
Uninstalling pip-9.0.1:
Successfully uninstalled pip-9.0.1
Successfully installed pip-9.0.3 wheel-0.30.0
Installing Pyinstaller
You can see that the pip file is newly installed.
C:\PYTHON36>CD Scripts
C:\python36\scripts>dir
The volume in drive C is the OS
The serial number of the volume is 509C-E5D1
Directory of C:\python36\Scripts
2018/03/23 13:20 <DIR>.
2018/03/23 13:20 <DIR>.
2018/03/23 11:11 89,449 Easy_install-3.6.exe
2018/03/23 11:11 89,449 Easy_install.exe
2018/03/23 13:20 89,421 Pip.exe
2018/03/23 13:20 89,421 Pip3.6.exe
2018/03/23 13:20 89,421 Pip3.exe
2018/03/23 13:20 89,428 Wheel.exe
6 files 536,589 bytes
2 Directories 65,916,514,304 bytes available
Installing Pyinstaller with PIP
C:\PYTHON36\SCRIPTS>PIP3 Install Pyinstaller
Collecting Pyinstaller
Downloading pyinstaller-3.3.1.tar.gz (3.5MB)
100% |████████████████████████████████| 3.5MB 36kb/s
Requirement already satisfied:setuptools in C:\python36\lib\site-packages (from Pyinstaller)
Collecting pefile>=2017.8.1 (from Pyinstaller)
Downloading pefile-2017.11.5.tar.gz (61kB)
100% |████████████████████████████████| 71kB 46kb/s
Collecting macholib>=1.8 (from Pyinstaller)
Downloading MACHOLIB-1.9-PY2.PY3-NONE-ANY.WHL (40kB)
100% |████████████████████████████████| 40kB 20kb/s
Collecting (from Pyinstaller)
Downloading future-0.16.0.tar.gz (824kB)
100% |████████████████████████████████| 829kB 44kb/s
Collecting Pypiwin32 (from Pyinstaller)
Downloading PYPIWIN32-223-PY3-NONE-ANY.WHL
Collecting altgraph>=0.15 (from Macholib>=1.8->pyinstaller)
Downloading ALTGRAPH-0.15-PY2.PY3-NONE-ANY.WHL
Collecting pywin32>=223 (from Pypiwin32->pyinstaller)
Downloading PYWIN32-223-CP36-CP36M-WIN32.WHL (8.3MB)
100% |████████████████████████████████| 8.3MB 42kb/s
Building Wheels for collected Packages:pyinstaller, Pefile, future
Running setup.py bdist_wheel for Pyinstaller ... done
Stored in Directory:c:\users\i01007600138\appdata\local\pip\cache\wheels\2f\f8\8e\ d8ee9b359f487a8488380f0b522d81fa5ee01956161d41b72e
Running setup.py bdist_wheel for pefile ... done
Stored in directory:c:\users\i01007600138\appdata\local\pip\cache\wheels\30\34\1d\ 5f4e14feee63c615a1ae25c211b21237a6a74c1c4fb6639842
Running setup.py Bdist_wheel for the future ... done
Stored in Directory:c:\users\i01007600138\appdata\local\pip\cache\wheels\c2\50\7c\ 0d83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017a
Successfully built Pyinstaller pefile future
Installing collected Packages:future, Pefile, Altgraph, Macholib, Pywin32, Pypiwin32, Pyinstaller
Successfully installed altgraph-0.15 future-0.16.0 macholib-1.9 pefile-2017.11.5 pyinstaller-3.3.1 pypiwin32-223 pywin32-223
Packaging scripts
C:\python36\scripts>pyinstaller-w c:/python36/nhrp.py
260 info:pyinstaller:3.3.1
260 info:python:3.6.4
263 INFO:PLATFORM:WINDOWS-10-10.0.15063-SP0
267 Info:wrote C:\python36\Scripts\nhrp.spec
272 INFO:UPX is not available.
274 info:extending PYTHONPATH with paths
[' c:\python36 ', ' C:\python36\Scripts ']
274 info:checking Analysis
276 info:building Analysis Because OUT00-ANALYSIS.TOC is non existent
280 info:initializing Module Dependency graph ...
285 info:initializing Module Graph hooks ...
288 info:analyzing Base_library.zip ...
3665 info:running Analysis Out00-analysis.toc
3682 info:adding microsoft.windows.common-controls to dependent assemblies of final executable
Required by C:\python36\python.exe
3958 Warning:lib not found:api-ms-win-crt-process-l1-1-0.dll dependency of C:\python36\python36.dll
3985 Warning:lib not found:api-ms-win-crt-conio-l1-1-0.dll dependency of C:\python36\python36.dll
4596 info:caching Module Hooks ...
4601 info:analyzing c:\python36\nhrp.py
4626 info:loading Module Hooks ...
4627 info:loading module Hook "hook-encodings.py" ...
4793 info:loading module Hook "hook-pydoc.py" ...
4794 info:loading module Hook "hook-xml.py" ...
5043 info:looking for cTYPES DLLs
5043 info:analyzing run-time Hooks ...
5053 info:looking for dynamic libraries
5102 Warning:lib not found:api-ms-win-crt-conio-l1-1-0.dll dependency of c:\python36\DLLs_ssl.pyd
5165 Warning:lib not found:api-ms-win-crt-conio-l1-1-0.dll dependency of c:\python36\DLLs_hashlib.pyd
5211 info:looking for Eggs
5211 info:using Python Library C:\python36\python36.dll
5213 Info:found binding redirects:
[]
5227 Info:warnings written to C:\python36\Scripts\build\nhrp\warnnhrp.txt
5278 Info:graph Cross-Reference written to C:\python36\Scripts\build\nhrp\xref-nhrp.html
5297 info:checking PYZ
5298 info:building PYZ Because Out00-pyz.toc is non existent
5299 info:building PYZ (zlibarchive) C:\python36\Scripts\build\nhrp\out00-PYZ.pyz
5814 info:building PYZ (zlibarchive) C:\python36\Scripts\build\nhrp\out00-PYZ.pyz completed successfully.
5819 info:checking PKG
5820 info:building PKG Because Out00-pkg.toc is non existent
5821 info:building PKG (CArchive) out00-pkg.pkg
5838 info:building PKG (CArchive) out00-pkg.pkg completed successfully.
5839 Info:bootloader C:\python36\lib\site-packages\PyInstaller\bootloader\Windows-32bit\runw.exe
5840 info:checking EXE
5843 info:building EXE Because Out00-exe.toc is non existent
5846 info:building EXE from Out00-exe.toc
5848 info:appending Archive to EXE C:\python36\Scripts\build\nhrp\nhrp.exe
5851 info:building EXE from Out00-exe.toc completed successfully.
5854 info:checking COLLECT
5854 info:building COLLECT Because Out00-collect.toc is non existent
5856 info:building COLLECT Out00-collect.toc
5951 info:updating manifest in C:\Users\i01007600138\AppData\Roaming\pyinstaller\bincache00_py36_32bit\ Python36.dll
5952 info:updating Resource Type 2 language 1033
10037 info:updating manifest in C:\Users\i01007600138\AppData\Roaming\pyinstaller\bincache00_py36_32bit_ssl.pyd
10038 info:updating Resource Type 2 language 1033
10062 info:updating manifest in C:\Users\i01007600138\AppData\Roaming\pyinstaller\bincache00_py36_32bit\ Unicodedata.pyd
10063 info:updating Resource Type 2 language 1033
10079 info:updating manifest in C:\Users\i01007600138\AppData\Roaming\pyinstaller\bincache00_py36_32bit\ Pyexpat.pyd
10080 info:updating Resource Type 2 language 1033
10099 info:updating manifest in C:\Users\i01007600138\AppData\Roaming\pyinstaller\bincache00_py36_32bit_ Hashlib.pyd
10100 info:updating Resource Type 2 language 1033
10118 info:updating manifest in C:\Users\i01007600138\AppData\Roaming\pyinstaller\bincache00_py36_32bit_bz2.pyd
10120 info:updating Resource Type 2 language 1033
10133 info:updating manifest in C:\Users\i01007600138\AppData\Roaming\pyinstaller\bincache00_py36_32bit_lzma.pyd
10134 info:updating Resource Type 2 language 1033
10149 info:updating manifest in C:\Users\i01007600138\AppData\Roaming\pyinstaller\bincache00_py36_32bit_socket.pyd
10150 info:updating Resource Type 2 language 1033
10164 info:updating manifest in C:\Users\i01007600138\AppData\Roaming\pyinstaller\bincache00_py36_32bit\select.pyd
10165 info:updating Resource Type 2 language 1033
10185 info:building COLLECT Out00-collect.toc completed successfully.
An EXE file has been generated under the Dist folder.
C:\PYTHON36\SCRIPTS\DIST>CD NHRP
C:\python36\scripts\dist\nhrp>dir
The volume in drive C is the OS volume serial number is 509C-E5D1
Directory of C:\PYTHON36\SCRIPTS\DIST\NHRP
2018/03/23 13:33 <DIR>.
2018/03/23 13:33 <DIR>.
2018/03/23 13:33 19,864 Api-ms-win-core-console-l1-1-0.dll
2018/03/23 13:33 19,360 Api-ms-win-core-datetime-l1-1-0.dll
2018/03/23 13:33 19,344 Api-ms-win-core-debug-l1-1-0.dll
2018/03/23 13:33 19,376 Api-ms-win-core-errorhandling-l1-1-0.dll
2018/03/23 13:33 22,928 Api-ms-win-core-file-l1-1-0.dll
2018/03/23 13:33 19,344 Api-ms-win-core-file-l1-2-0.dll
2018/03/23 13:33 19,336 Api-ms-win-core-file-l2-1-0.dll
2018/03/23 13:33 19,352 Api-ms-win-core-handle-l1-1-0.dll
2018/03/23 13:33 19,856 Api-ms-win-core-heap-l1-1-0.dll
2018/03/23 13:33 19,880 Api-ms-win-core-interlocked-l1-1-0.dll
2018/03/23 13:33 19,888 Api-ms-win-core-libraryloader-l1-1-0.dll
2018/03/23 13:33 21,936 Api-ms-win-core-localization-l1-2-0.dll
2018/03/23 13:33 19,864 Api-ms-win-core-memory-l1-1-0.dll
2018/03/23 13:33 19,360 Api-ms-win-core-namedpipe-l1-1-0.dll
2018/03/23 13:33 20,424 Api-ms-win-core-processenvironment-l1-1-0.dll
2018/03/23 13:33 21,432 Api-ms-win-core-processthreads-l1-1-0.dll
2018/03/23 13:33 19,896 Api-ms-win-core-processthreads-l1-1-1.dll
2018/03/23 13:33 18,840 Api-ms-win-core-profile-l1-1-0.dll
2018/03/23 13:33 18,856 Api-ms-win-core-rtlsupport-l1-1-0.dll
2018/03/23 13:33 19,352 Api-ms-win-core-string-l1-1-0.dll
2018/03/23 13:33 21,392 Api-ms-win-core-synch-l1-1-0.dll
2018/03/23 13:33 19,856 Api-ms-win-core-synch-l1-2-0.dll
2018/03/23 13:33 20,376 Api-ms-win-core-sysinfo-l1-1-0.dll
2018/03/23 13:33 19,360 Api-ms-win-core-timezone-l1-1-0.dll
2018/03/23 13:33 19,344 Api-ms-win-core-util-l1-1-0.dll
2018/03/23 13:33 23,448 Api-ms-win-crt-convert-l1-1-0.dll
2018/03/23 13:33 19,880 Api-ms-win-crt-environment-l1-1-0.dll
2018/03/23 13:33 21,408 Api-ms-win-crt-filesystem-l1-1-0.dll
2018/03/23 13:33 20,360 Api-ms-win-crt-heap-l1-1-0.dll
2018/03/23 13:33 19,856 Api-ms-win-crt-locale-l1-1-0.dll
2018/03/23 13:33 30,088 Api-ms-win-crt-math-l1-1-0.dll
2018/03/23 13:33 23,952 Api-ms-win-crt-runtime-l1-1-0.dll
2018/03/23 13:33 25,488 Api-ms-win-crt-stdio-l1-1-0.dll
2018/03/23 13:33 25,488 Api-ms-win-crt-string-l1-1-0.dll
2018/03/23 13:33 21,896 Api-ms-win-crt-time-l1-1-0.dll
2018/03/23 13:33 19,864 Api-ms-win-crt-utility-l1-1-0.dll
2018/03/23 13:33 732,544 Base_library.zip
2018/03/23 13:33 1,417,359 Nhrp.exe
2018/03/23 13:33 1,027 nhrp.exe.manifest
2018/03/23 13:33 157,184 Pyexpat.pyd
2018/03/23 13:33 3,291,136 Python36.dll
2018/03/23 13:33 16,384 Select.pyd
2018/03/23 13:33 1,150,776 Ucrtbase.dll
2018/03/23 13:33 888,832 Unicodedata.pyd
2018/03/23 13:33 83,784 VCRUNTIME140.dll
2018/03/23 13:33 71,168 _bz2.pyd
2018/03/23 13:33 1,114,112 _hashlib.pyd
2018/03/23 13:33 176,640 _lzma.pyd
2018/03/23 13:33 54,784 _socket.pyd
2018/03/23 13:33 1,452,544 _ssl.pyd
50 files 11,358,818 bytes
2 Directories 65,685,147,648 bytes available
Double-click the exe file to execute the script.
Python3 Packaging Scripts