Python setup py install not working
I've been using python for a while but I can't remember how I used to install modules, I haven't needed to in forever. I recently reinstalled ubuntu so now I need to. Show Firstly, I try to run setup.py and get this:
I tried using synaptic to install BeautifulSoup but it didn't work either and python tells me there's no modules named that. Some forums said that it had to do with being in the wrong working directory so I cd'd into my Python26 folder and tried to run python ./setup.py install from there and it still didn't work. I'm not sure what the deal is. Any guidance? asked Aug 23, 2012 at 0:19
2
OR
Then just run:
e.g.
answered Aug 23, 2012 at 0:36
DavidDavid 6,2792 gold badges24 silver badges21 bronze badges
You should definitely be
able to use easy_install for more popular packages and well, and as far as utilizing answered Aug 23, 2012 at 0:32
jaypbjaypb 1,50410 silver badges22 bronze badges 1 See other answers that recommend using the package manager that comes with Ubuntu (aptitude). This is the easiest way to do it. However, to answer your specific question, to install a package based on the Distutils you need to download the package, extract it, and then run the setup.py script. As an example for BeautifulSoup: Download the package from Beautiful Soup 4.1.3 (at time of writing get the beautifulsoup4-4.1.3.tar.gz tarball).
answered Aug 23, 2012 at 0:42
mhawkemhawke 81.6k9 gold badges113 silver badges135 bronze badges Sudo command will not work in Windows. If you have something to install don't use Sudo, instead directly install your file: for ex: If you sudo python3 setup.py install then windows users can just type setup.py install answered Jun 17, 2017 at 18:51
Are you using windows? if so, replace the answered Aug 15, 2020 at 3:45
I am trying to install a package locally using The package can be found here: https://github.com/biblicalhumanities/greek-syntax When I run Here is the output from the command:
How do I run Python setup py?Installing Python Packages with Setup.py
To install a package that includes a setup.py file, open a command or terminal window and: cd into the root directory where setup.py is located. Enter: python setup.py install.
What is setup py in Python?The setup.py file may be the most significant file that should be placed at the root of the Python project directory. It primarily serves two purposes: It includes choices and metadata about the program, such as the package name, version, author, license, minimal dependencies, entry points, data files, and so on.
Does pip need setup py?As a first step, pip needs to get metadata about a package (name, version, dependencies, and more). It collects this by calling setup.py egg_info . The egg_info command generates the metadata for the package, which pip can then consume and proceed to gather all the dependencies of the package.
Does pip install run setup py?pip is a package manager, which can install, upgrade, list and uninstall packages, like familiar package managers including: dpkg, apt, yum, urpmi, ports etc. Under the hood, it will run python setup.py install , but with specific options to control how and where things end up installed. In summary: use pip .
|