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
  • 19,150
  • 23
  • 79
  • 104
vish
  • 531
  • 2
  • 6
  • 14
  • 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

5 Answers5

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
  • 9,744
  • 13
  • 40
  • 63
1

Use the following:

python setup.py install
Graham Dumpleton
  • 56,277
  • 6
  • 111
  • 129
1

Try this python setup.py install

visc
  • 4,184
  • 4
  • 29
  • 51
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
  • 756
  • 6
  • 10
0

in Linux use

sudo python3 setup.py install