Feb-28-2019, 09:20 AM
Hi administrator!
In compliance with your kind advices I've erased my old ralease (3.4) and installed a new one. All works perfectly, as shown below. Thanks a lot, and cheers
In compliance with your kind advices I've erased my old ralease (3.4) and installed a new one. All works perfectly, as shown below. Thanks a lot, and cheers
Step-1: check Python version ------ C:\Users\Alfabeta>python -V Python 3.7.2 Step-2: installing the math library (mpmath) via pip ------ C:\Users\Alfabeta>pip install mpmath Collecting mpmath Downloading https://files.pythonhosted.org/packages/ca/63/3384ebb3b51af9610086b23ea976e6d27d6d97bf140a76a365bd77a 3eb32/mpmath-1.1.0.tar.gz (512kB) 100% |████████████████████████████████| 522kB 2.2MB/s Installing collected packages: mpmath Running setup.py install for mpmath ... done Successfully installed mpmath-1.1.0 You are using pip version 18.1, however version 19.0.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. Step-3: installing module (pyinstaller) ------ C:\Users\Alfabeta>pip install pyinstaller Collecting pyinstaller Downloading https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef3 9a0cc/PyInstaller-3.4.tar.gz (3.5MB) 100% |████████████████████████████████| 3.5MB 2.2MB/s Installing build dependencies ... done Requirement already satisfied: setuptools in c:\users\alfabeta\appdata\local\programs\python\python37\lib\site-pack ages (from pyinstaller) (40.6.2) Collecting pefile>=2017.8.1 (from pyinstaller) Downloading https://files.pythonhosted.org/packages/ed/cc/157f20038a80b6a9988abc06c11a4959be8305a0d33b6d21a134127 092d4/pefile-2018.8.8.tar.gz (62kB) 100% |████████████████████████████████| 71kB 2.3MB/s Collecting macholib>=1.8 (from pyinstaller) Downloading https://files.pythonhosted.org/packages/41/f1/6d23e1c79d68e41eb592338d90a33af813f98f2b04458aaf0b86908 da2d8/macholib-1.11-py2.py3-none-any.whl Collecting altgraph (from pyinstaller) Downloading https://files.pythonhosted.org/packages/0a/cc/646187eac4b797069e2e6b736f14cdef85dbe405c9bfc7803ef36e4 f62ef/altgraph-0.16.1-py2.py3-none-any.whl Collecting pywin32-ctypes (from pyinstaller) Downloading https://files.pythonhosted.org/packages/9e/4b/3ab2720f1fa4b4bc924ef1932b842edf10007e4547ea8157b0b9fc7 8599a/pywin32_ctypes-0.2.0-py2.py3-none-any.whl Collecting future (from pefile>=2017.8.1->pyinstaller) Downloading https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f81 05f5f/future-0.17.1.tar.gz (829kB) 100% |████████████████████████████████| 829kB 2.2MB/s Installing collected packages: future, pefile, altgraph, macholib, pywin32-ctypes, pyinstaller Running setup.py install for future ... done Running setup.py install for pefile ... done Running setup.py install for pyinstaller ... done Successfully installed altgraph-0.16.1 future-0.17.1 macholib-1.11 pefile-2018.8.8 pyinstaller-3.4 pywin32-ctypes-0 .2.0 You are using pip version 18.1, however version 19.0.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. Step-3bis: updating (pip) as suggested before --------- C:\Users\Alfabeta>python -m pip install --upgrade pip Collecting pip Downloading https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125 dceff/pip-19.0.3-py2.py3-none-any.whl (1.4MB) 100% |████████████████████████████████| 1.4MB 3.0MB/s Installing collected packages: pip Found existing installation: pip 18.1 Uninstalling pip-18.1: Successfully uninstalled pip-18.1 Successfully installed pip-19.0.3 C:\Users\Alfabeta>pip -V pip 19.0.3 from c:\users\alfabeta\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7) Step-4: applying pyinstaller to the code Neper.py ------ C:\Training\zoz>pyinstaller -F Neper.py 62 INFO: PyInstaller: 3.4 62 INFO: Python: 3.7.2 62 INFO: Platform: Windows-10-10.0.17134-SP0 62 INFO: wrote C:\Training\zoz\Neper.spec 62 INFO: UPX is not available. ............... ............... 8869 INFO: Appending archive to EXE C:\Training\zoz\dist\Neper.exe 8900 INFO: Building EXE from EXE-00.toc completed successfully. Step-5: check if the standalone executable is formed ------ Directory di C:\Training\zoz\dist 28/02/2019 09:56 6.568.756 Neper.exe 1 File 6.568.756 byte Step-6: running it ------ C:\Training\zoz\dist>Neper 2.71828182845904523536028747135266249775724709369995957496696762772407663035354759457138217852516642742746639193200 3059921817413596629043572900334295260595630738132328627943490763233829880753195251019011573834187930702154089149934 8841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265 6029760673711320070932870912744374704723069697720931014169283681902551510865746377211125238978442505695369677078544 9969967946864454905987931636889230098793127736178215424999229576351482208269895193668033182528869398496465105820939 2398294887933203625094431173012381970684161403970198376793206832823764648042953118023287825098194558153017567173613 3206981125099618188159304169035159888851934580727386673858942287922849989208680582574927961048419844436346324496848 7560233624827041978623209002160990235304369941849146314093431738143640546253152096183690888707016768396424378140592 ... and so on!