I have the below setup.py script. When I execute the command setup.py install, I do not see the python packages installed in my system. In case of java, we use maven or gradle so that it can automatically download and install in the system. I want exact feature in setup.py. I see that colorama, configparser are not installed, I manually installed setuptools and cx-Freeze using pip command. Below is my setup.py script contents.
from setuptools import setup, find_packages, Command
setup(
name="Runner", # program name
version="0.0.1",
description='A utility to build an exe',
author="Debadatta Mishra",
author_email="[email protected]",
python_requires='>=3.6',
install_requires=['configparser==4.0.2', 'colorama==0.4.3', 'setuptools==45.2.0', 'cx-Freeze==6.1']
)
If I execute pip list, I do not see colorama, configparser etc. Please help me , I am new to python programming.
To run the setup script, I use the command python setup.py install in command prompt.
python setup.py installcommand ?pip -V?pip install .in the directory yoursetup.pyresides in, it will process all the dependencies frominstall_requiresas well. This is the "correct" way to install Python packages these days, as pip is ostensibly independent of setuptools and the different ways it does things.