0

I tried to install a python package using setup.py but failed.

Any idea about that? I am on Ubuntu 14.04.

pip install setup.py

Error

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
vish
  • 671
  • 2
  • 7
  • 15
  • Does this answer your question? [What is setup.py?](https://stackoverflow.com/questions/1471994/what-is-setup-py) – Gino Mempin Mar 23 '21 at 09:52

4 Answers4

3

You just mixed up something.Have a look at pip install usage and Installing Python Modules.

If you want to download a module source distribution and install it, you should unpack the archive into a similarly-named directory: foo-1.0. Additionally, the distribution will contain a setup script setup.py,and then run this command from a terminal:

python setup.py install

You can use pip install if you want to install packages from:

  • PyPI (and other indexes) using requirement specifiers.
  • VCS project urls.
  • Local project directories.
  • Local or remote source archives.

Hope this helps.

McGrady
  • 10,869
  • 13
  • 47
  • 69
1

Use the following:

python setup.py install
Graham Dumpleton
  • 57,726
  • 6
  • 119
  • 134
1

Try this python setup.py install

visc
  • 4,794
  • 6
  • 32
  • 58
1

Navigate to the folder containing the package

eg: cd /Desktop/packages/foo-1.0/

you can install the package either by

python setup.py install  

or by

pip install ./
vijay
  • 846
  • 9
  • 11