Python Forum
pyinstaller used 3.7 to build instead 2.7
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyinstaller used 3.7 to build instead 2.7
#1
Do anyone know how to used PyInstaller to build script to exe file.
Due to I have two python version 2.7 and 3.7.
When I convert it used 2.7 to build, I want to use 3.7 to build.

208 INFO: PyInstaller: 3.4
209 INFO: Python: 2.7.8

Do anyone have any idea how to used 3.7 to build.

Thanks
Reply
#2
if you want to use it with 3.7 you need to install it for that version (if you didn't do so yet) and run it with that version of python. From information provided currently you have it installed [probably only] for 2.7
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
pyinstaller: 3.4
Reply
#4
(Jan-17-2019, 10:07 AM)jacklee26 Wrote: pyinstaller: 3.4
That is pyintsaller version, what is your question?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
Python 3.6/3.7 and pip installation under Windows
If follow this then 3.7 will your main version in Windows Path.
# Check Python 
λ python -V
Python 3.7.0

# Check pip
C:\
λ pip -V
pip 18.1 from c:\python37\lib\site-packages\pip (python 3.7)

# install pyinstaller,as pip as shown will install into 3.7
C:\
λ pip install pyinstaller
Requirement already satisfied: pyinstaller in c:\python37\lib\site-packages (3.4)
Requirement already satisfied: macholib>=1.8 in c:\python37\lib\site-packages (from pyinstaller) (1.10)
Requirement already satisfied: altgraph in c:\python37\lib\site-packages (from pyinstaller) (0.16.1)
Requirement already satisfied: pywin32-ctypes in c:\python37\lib\site-packages (from pyinstaller) (0.2.0)
Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from pyinstaller) (39.0.1)
Requirement already satisfied: pefile>=2017.8.1 in c:\python37\lib\site-packages (from pyinstaller) (2018.8.8) Requirement already satisfied: future in c:\python37\lib\site-packages (from pefile>=2017.8.1->pyinstaller) (0.17.1)

# Now will pyinstaller use 3.7
C:\
λ pyinstaller --onefile foo.py
If i want to use 2.7,i go into C:\Python27\Scripts from command line folder and use pyinstaller.exe from there.
But 2.7 should not at all be the main version in Windows Path,as it soon will die Angel
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020