Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

I'm trying to convert a fairly simple Python program to an executable and couldn't find what I was looking for, so I have a few questions (I'm running Python3.6):

The methods of doing this that I have found so far are as follows

  1. downloading an old version of Python and using pyinstaller/py2exe

  2. setting up a virtual environment in 3.6 that will allow me to do 1.

  3. downloading a Python to C++ converter and using that.

Here is what I've tried/what problems I've run into.

  • I installed pyinstaller before the required download before it (PyPI-something) so it did not work. After downloading the prerequisite file, pyinstaller still does not recognize it.

  • If I'm setting up a virtualenv in 2.7, do I actually need to have 2.7 installed?

  • similarly, the only python to C++ converters I see work only up until python 3.5 - do I need to download and use this version if attempting this?

1 Answer

0 votes
by (106k points)

You can use the below-mentioned command:-

 pip install pyinstaller

The simplest way to use it is by entering on your command prompt

pyinstaller file_name.py

To know more about this you can have a look at the following video tutorial:-

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...