Python is a dynamically and strongly typed programming language that encourages readability.
Questions tagged [python]
1743 questions
93
votes
3 answers
How do I list the files associated with a Python package installed using pip or easy_install?
I've installed a Python package using pip, which is a replacement for easy_install. How do I get a list of which installed files are associated with this package?
Basically, I'm looking for the Python package equivalent of
dpkg -L
or
rpm -ql

Lorin Hochstein
- 5,028
- 15
- 56
- 72
40
votes
0 answers
What advantages/features does Puppet or Chef offer over Salt (or vice versa)?
I am looking at rolling out a new configuration management tool to replace our home-grown solution. The defacto standards are Chef and Puppet, both of which are Ruby-centric (though can be used to deploy non-Ruby environment, obviously). The vast…

jamieb
- 3,427
- 4
- 25
- 36
38
votes
7 answers
How to automatically start supervisord on Linux (Ubuntu)
Supervisord does not come with an init script or does not indicate how to get it started automatically, ie. after a reboot. I've tried some user-contributed /etc/init.d scripts, but they all fail.
What would be the preferred solution ?
sebastien
34
votes
6 answers
How can I upgrade Python to 2.7.9 on Ubuntu 14.4?
Ubuntu 14.4 comes with Python 2.7.6 built-in, but I'd like to upgrade it to 2.7.9 (it has security features that I want).
Is that even possible? If so, how can this be achieved?

moomima
- 497
- 2
- 5
- 9
32
votes
4 answers
How to run easy_install in cygwin?
I am trying to install some package in cygwin's python, but I'm getting the following error: "easy_install: command not found".
I have tried to run "easy_install.py", the result is also "easy_install.py: command not found". I have tried to search…

Alex Gontmakher
- 101
- 1
- 2
- 4
31
votes
3 answers
Best way to run python 3.7 on Ubuntu 16.04 which comes with python 3.5
I would like to avoid backports, they always seem to mess up my packages.
So I was thinking tools like conda / virtualenv / maybe even docker can help. What's the most simple / cleanest way to work with python 3.7 on my system?

benji
- 487
- 1
- 5
- 11
26
votes
7 answers
How to set up Mod_WSGI for Python on Ubuntu
I am trying to setup MOD_WSGI on my Ubuntu box. I have found steps that said I needed to do the following steps I found at http://ubuntuforums.org/showthread.php?t=833766
sudo apt-get install libapache2-mod-wsgi
sudo a2enmod mod-wsgi
sudo…

AutomatedTester
- 421
- 1
- 4
- 10
25
votes
3 answers
Shinken - Anyone using it?
I've recently discovered Shinken, which is a new implementation of Nagios using python. Shinken "divides" Nagios in 5 different types of daemons, each one performing separated tasks. I haven't tried it yet but for what I've seen the whole…

Marco Ramos
- 3,120
- 23
- 25
23
votes
1 answer
Python CGI on Amazon AWS EC2 micro-instance -- a how-to!
How can you make an EC2 micro instance serve CGI scripts from lighthttpd? For instance Python CGI?
Well, it took half a day, but I have gotten Python cgi running on a free Amazon AWS EC2 micro-instance, using the lighttpd server. I think it will…
user595585
21
votes
1 answer
Recommended Nginx + WSGI Configurations
Please explain pros/cons when using the different Nginx WSGI interfaces? Please explain in detail what differentiates each configuration? Which configuration should scale the best?
If relevant, what are you running right now, and why?
Some…

cmcginty
- 1,303
- 15
- 24
19
votes
1 answer
Keepalive setting for Gunicorn behind ELB without Nginx
Our app's REST API is served by Gunicorn (not behind Nginx) running on AWS EC2 instances with a typical auto-scaling/load balancing setup. The load balancer's idle timeout is 60 seconds, and Gunicorn's keep-alive timeout is 2 seconds. We've been…

handsofaten
- 337
- 1
- 3
- 6
18
votes
3 answers
How do I uninstall gitosis?
I've installed gitosis on my dramhost machine but now I want to uninstall it because it's causing more problems than solutions.
The thing is that I can't find how to uninstall it. I deleted the ~/repositories directories but of course all the bins…

Oscar Del Ben
- 281
- 2
- 4
18
votes
5 answers
Unzip from stdin to stdout - funzip, python
The goal is to read a zip file from stdin and uncompress to stdout.
Funzip works and is the solution I am looking for, the zip contains a single file, unfortunately funzip fails when the compressed file size is around 1GB or greater:
funzip error:…

chillvibes
- 181
- 1
- 1
- 4
17
votes
3 answers
Running multiple workers using Celery
I need to read from Rabbitmq and execute task in parallel using Celery in a single system.
[2014-12-30 15:54:22,374: INFO/Worker-1] ...
[2014-12-30 15:54:23,401: INFO/Worker-1] ...
[2014-12-30 15:54:30,878: INFO/Worker-1] ...
[2014-12-30…

SrC
- 181
- 1
- 1
- 4
17
votes
2 answers
Non-responsive apache + mod_wsgi after installing scipy
I am currently running a Centos 6.4 server, with Apache 2.2.15 and mod_wsgi 3.2. The server is hosting a django-based site (django 1.5.1, python 2.6.6). Everything was running fine until I installed scipy 0.12.0 via pip. Now, when I attempt to…

MarkD
- 273
- 1
- 2
- 5