0
votes
1answer
318 views

Python2.7 / Pip2.7 install in Centos6: root does not see /usr/local/bin

I am trying to install Python2.7 in Centos 6. It's a pain as centos6 ships with python26 and yum is dependent on it. Furthermore yum does not seem to have python2.7 I ended up building it from ...
0
votes
0answers
155 views

pip: which pip.conf will be used?

Commonly used to install python packages sudo pip install <package> To use a different repo, I edited ~/.pip/pip.conf [global] index-url = http://<hostname>/simple That works on my ...
2
votes
2answers
79 views

To install and use Django 1.4.1 without sudo access

I want to install this software to a server where I have no sudo access. They have Django 1.2.x installed there, but the software needs Django 1.4.1. The server has the adapter between Python and ...
0
votes
1answer
202 views

How to a sudo command which keeps all environment variables

Example command is as follows, run as a normal user which python /home/me/env/development/python because the PATH environment contains a path that points out to this instance of python (instead to ...
0
votes
2answers
104 views

Why sudo python and python in terminal start two different versions python?

I had python 2.6 in my server to begin with. Then I downloaded python 2.7 and installed using make and make altinstall. When I try just python in the terminal it opens up python 2.7 but sudo python ...
1
vote
2answers
510 views

Function defined in my user's .bashrc causes an error when I sudo su

I have a function defined in my user's .bashrc file that displays my current git branch name at my command prompt: parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* ...
0
votes
2answers
634 views

Have sudo create files under your own user id?

If I wanted to do something like sudo fdisk -l > test.txt but I wanted test.txt to be under my own user ID (and not root) without having to chown it afterwards, is there a way to do this? ...
1
vote
1answer
1k views

How to run python script on startup with sudo permission on Mac OS

I have created a script with python that basically ping all servers found in my lists. I need this script to be run on startup with sudo permission. So the question is, How do you run the script on ...
0
votes
0answers
196 views

Installing setup using sudo in Python

I'm getting a strange output when trying to install setup.py for a project. Any clue as to what I'm doing wrong? $ sudo python setup.py ...
1
vote
1answer
503 views

Installing setup using sudo in Python

I'm getting a strange output when trying to install setup.py for a project. Any clue as to what I'm doing wrong? $ sudo python setup.py ...
2
votes
1answer
1k views

sudo does not preserve PYTHONPATH

I modified /etc/sudoers (using visudo) to keep environment variables : Defaults !env_reset # Host alias specification # User alias specification # Cmnd alias specification # User privilege ...
3
votes
1answer
1k views

Python Module: Trouble Installing Bitarray

I'm not sure why I am having trouble installing the Python Module Bitarray on my Ubuntu 8.10 machine. dan@Tower:~/py$ tar xzf bitarray-0.3.5.tar.gz dan@Tower:~/py$ cd bitarray-0.3.5 ...