I downloaded a master.zip file from Github for my project. However, it is not clear how to install and use setup.py on Linux. I try python3 setup.py
but nothing happens. How can I use the setup.py file on Linux to install downloaded application?
What is setup.py?
The setup.py is typically provided with a Python application. The purpose is to install and distribute apps written in Python easily, including all dependencies. It is the standard method for distributing Python modules and apps.
How to use setup.py
Do you have pip
or pip3
installed? If not, install it. Once install all have to do is execute
cd /path/to/setup.py/dir/
pip install .
pip3 install .
Ref: https://docs.python.org/3/installing/index.html
Avoid running commands:
That is all. No need to run any one of the followings:
python setup.py
python setup.py
But you can do:
python setup.py install
Let us know if this solves your problem.
1 Like