Member-only story

Converting Python File to Setup File

In this article, I will explain how to convert a project written in Python into a corporate-looking setup file that can be run even by someone who does not even have Python installed on their computer.

Buse Köseoğlu
6 min readFeb 5, 2025

--

https://line.17qq.com/articles/uwsuqharx_p2.html

Before proceeding with all these operations, I recommend that this operation be performed in a “virtual environment”. Because installing the desired libraries and versions here will ensure that only the libraries to be used in that project are included in the exe file to be created, thus reducing the size of the program. In addition, by adding the desired versions of the libraries, a possible version conflict will be eliminated. The library version changes made here will not affect the libraries on the host computer.

In order to create a virtual environment, Python must be installed on your computer. We will use a library for this operation. This library is downloaded by typing “pip install pipenv” on the CMD screen. Then, a virtual environment is prepared by typing “pipenv install requests”. A Windows PowerShell is opened by typing “pipenv shell”. Now, a Python environment that does not conflict with your computer has been created. Then, the desired libraries can be downloaded here and the operation can be performed. The…

--

--

No responses yet