Is it possible to use cx_freeze in a python 3 project using pip module?

I am writing an installer for the larger program that I am writing, and I use CxFreeze to convert it to an executable file, however, when I run the .exe file, it crashes using the "import pip" line and raises (as shown below), so basically my question is: is it possible to use CxFreeze for an application with imported pip?

Edit: Here are all the files I use:

setup.py (V1):

from cx_Freeze import *
import os, pip
setup(name=("ARTIST"),
      version = "1",
      description = "ARTIST installation file",
      executables = [Executable("Install ARTIST.py"), Executable("C:\\Python34\\Lib\\site-packages\pip\\__init__.py")],
      )

This causes an error: enter image description here

setup.py (V2):

from cx_Freeze import *
import os, pip
setup(name=("ARTIST"),
      version = "1",
      description = "ARTIST installation file",
      executables = [Executable("Install ARTIST.py"],
      options = {"build_exe": {"packages":[pip]}}
      )

This causes an error in the file setup.bat: enter image description here

Edit: If someone wants to see the site where I am posting a great program, here is the link: alaricwhitehead.wix.com/artist

Edit2: this is the error I get when I use py2exe: enter image description here

Edit3: : https://www.dropbox.com/s/uu46iynm8fr8agu/Install%20ARTIST.txt?raw=1

: , .

+4
1

script. , packages build_exe: packages , ( pip) includes. , includes , :

setup(
    name=("ARTIST"),
    version="1",
    description="ARTIST installation file",
    options={
        'build_exe': {
            'excludes': [], # list of modules to exclude
            'includes': ['pip'], # list of extra modules to include (from your virtualenv of system path),
            'packages': [], # list of packages to include in the froze executable (from your application)
        },
    },
    executables=[
        Executable(
            script='run.py', # path to the entry point of your application (i.e: run.py)
            targetName='ARTIST.exe', # name of the executable
        )
    ]
)
+2

Source: https://habr.com/ru/post/1629716/


All Articles