Questions tagged [virtualenv]
66 questions
3
votes
1 answer
Per-job environments in Jenkins with virtualenv
I'm trying to use virtualenv to programmatically manage Python environments for each job on a Jenkins server, implemented via a Shared Library extension to activate environments on a per job basis. E.g.:
/vars/activateEnvironment.groovy:
def…

cwh
- 63
- 1
- 9
3
votes
1 answer
How should virtualenv be set up in a production Web server (user, location, etc.)
I'm switching my production sever to use virtualenv, and I want to understand the best practices for setting up virtualenv in a production environment. The following questions are ones I've run into today while trying to figure this out:
what user…

mlissner
- 1,060
- 3
- 10
- 18
3
votes
3 answers
Python3 virtualenv: ImportError: no module named 'ConfigParser'
I'm working on OSX and I'm trying to create a virtualenv with Python3, but I'm getting an error:
$ virtualenv --python python3 env
Running virtualenv with interpreter /Library/Frameworks/Python.framework/Versions/3.4/bin/python3
Traceback (most…

Richard
- 263
- 2
- 5
- 11
3
votes
1 answer
Workaround for pip install -E option
I am running a Fabric script that sets up a virtualenv on a remote server (running Ubuntu 12.04) and installs various packages into it. The script uses the -E option for pip to install the packages into the virtualenv:
pip install -E . -r [path to…

Jonny Chu
- 33
- 3
3
votes
1 answer
pycurl install looks for a non-existent file (libcurl.a)
I'm running a Gentoo Linux system under which I've never had problems installing anything into my virtualenv using pip. I've managed installing PIL and django, but for some reason, pycurl (a dependency of cloudkey) is flipping out, claiming that I…

Daniel Quinn
- 635
- 2
- 9
- 15
3
votes
1 answer
virtualenv gcc error MySQL-python
I am trying to install MySQL-python through PuTTY with virtualenv.
Specs.
*CentOS-6.0
*Python2.6
So I have read many sites and the biggest thing I see is python-dev, and python-devel(btw I don't know the difference). I cannot get these to install,…

Nathan McAfee
- 33
- 1
- 4
2
votes
1 answer
Where to store the Python virtualenv of a system-wide installed application
You're deploying a Python application that uses its own virtualenv with libraries different from the system installed libraries, and you need to install those libraries the best way possible.
I ask this because it's clear that the binary is going to…

Diego Fernández Durán
- 188
- 6
2
votes
1 answer
virtualenv Failed to map segment from shared object: Permission denied
When SELinx is in permissive the Django webapp runs fine with no alerts. The below error appears in the Apache error log, once SELinux is set to enforcing, but no alerts are logged to audit.log.
[wsgi:error] import psycopg2 as…

Kevin
- 314
- 4
- 9
2
votes
1 answer
Why does httpd seem to use a different version of python with the same executable?
I am running Apache httpd 2.4.4 on a RedHat 5 machine. I am using Django and running through mod_wsgi. I have Python 2.4.3 installed in /usr/bin and Python 2.7.6 installed in /usr/local/bin and I want to use 2.7.6. I build the 2.7.6 from source and…

Graeme Perrow
- 555
- 1
- 4
- 16
2
votes
1 answer
Deploying Flask application with nginx, uWSGI and virtualenv
I'm having a lot of trouble to deploy a Flask application on a CentOS 6 server. I know a few other questions have been asked concerning this problem, but I haven't succeeded yet.
Description
Default Python is Python 2.6.6
nginx version is…

Vincent Savard
- 121
- 5
2
votes
1 answer
How to run easy_install and pip without root, without virtualenv?
People have access to servers as normal users (jailed actually), and they're advised - at the moment - to download whatever python packages they need, setup.py build them, then add their location to sys.path.
Without virutalenv, is there a way to…

Stefano Palazzo
- 227
- 1
- 13
2
votes
2 answers
Installing Pootle with uwsgi on ubuntu server
I'm trying to install a Pootle server on an ubuntu server under uwsgi. While everything went ok on my local dev server, when online i got this error i cannot overcome. It seems application-related, not server related, but since it works on my…

Gabriele B
- 163
- 4
2
votes
2 answers
Installing compiled Python modules on Windows on a virtual env
I'm using virtualenv to maintain a Python installation on Windows.
I want to install the popular PIL module, which comes as .exe. I run the .exe installer, but it tries to install to the regular Python folder and it doesn't give me any opportunity…

Ram Rachum
- 5,231
- 7
- 34
- 46
2
votes
1 answer
uwsgi vassal does not use virtualenv
I am running a python application started by an uwsgi emperor. The application is supposed to run in a specific venv, but I cannot get that to work.
The ini file for the application specifies a venv created with python3.8. Still, the application is…

ygramoel
- 151
- 4
1
vote
3 answers
Red Hat + pip + virtualenv + proxy = Error
i've an issue: my corporate proxy kill every pip-installation.
export http_proxy= doesn't works:
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.',…

Antispam Antispam
- 21
- 4