I am running ubuntu 16. I have both python 2.7 and 3.5 installed. I want to install cx_freeze latest version for python3. I downloaded the package from their website but couldn't run the setup.py file as it always gave me errors. Also i have installed pip3, but it still doesn't work for me. all the answers online are for older version of cx_freeze so a fresh answer for the new version will be helpful.
cx-Freeze can be installed using pip from the python-pip package in the default Ubuntu repositories. pip has been updated to the latest version (pip-9.0.1) using the command
sudo -H pip2 install --upgrade pip
sudo pip install cx_Freeze Collecting cx_Freeze Installing collected packages: cx-Freeze Successfully installed cx-Freeze-5.0.2 >>> import cx_Freeze >>> dir(cx_Freeze) ['ConfigError', 'ConstantsModule', 'Executable', 'Freezer', 'Module', 'ModuleFinder', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '__version__', 'bdist_rpm', 'build', 'build_exe', 'common', 'hooks', 'install', 'install_exe', 'main', 'setup', 'sys', 'version']
To install cx_Freeze for Python 3.x use pip3 from the python3-pip package in the default Ubuntu repositories and update pip3 to the latest version using the command:
sudo -H pip3 install --upgrade pip