Questions tagged [virtualenv]
66 questions
1
vote
2 answers
Cleaning Jenkins workspace but keep Python .venv intact
This question pertains to working with a Python + Poetry project within a Jenkins pipeline and how to retain the .venv/
SCENARIO:
I have a Jenkins Pipeline job that triggers a Python project. The project uses poetry to create a virtual env in .venv…

Rino Bino
- 511
- 5
- 21
0
votes
0 answers
How to remove python-virtualenv RPM using commands that are run from an installing RPM?
I need to install virtualenv from an RPM.
I do this from the RPM's post-install script, with the following:
pip2 install pip --upgrade
pip2 install virtualenv --upgrade
However, the pip2 install pip now upgrades PIP to version 10, which throws the…

boardrider
- 949
- 2
- 18
- 29
0
votes
0 answers
Why doesn't gcc compile for Python packages inside virtualenv?
I am trying to compile a Python script into an executable that relies upon packages only installed inside a virtualenv:
sudo su
source /home/me/venv/bin/activate # Activates virtualenv
cython --embed -o defer4.c defer4.py
gcc -Os -I…

sscirrus
- 103
- 5
0
votes
1 answer
Django CMS using nginx and gunicorn in virtualenv renders html from version 3.4.4 after upgrade to 3.4.5 - where is the caching?
I set up a django-cms installation version 3.4.4 with nginx and gunicorn. Then I removed the installation and installed the new 3.4.5 version.
Pip confirms this worked:
(myenv) user@s23:~/myenv$ pip3 list
DEPRECATION: The default format will…

Patrick
- 101
- 1
0
votes
1 answer
PyPi Django installation incomplete
I've encountered an interesting issue, and haven't yet managed to solve it with Google.
I'm using virtualenv+python3.5. After a number of ImportErrors, I came to a conclusion that my Django installation is incomplete.
Here's a tree of the…

khvn
- 111
- 3
0
votes
0 answers
Apache maximum memory size per child
Running apache 2.0 on ubuntu 14.04 (MPM prefork), I'm seeing multiple child workers with variable "RES" megabyte values (as expected). While I have plenty of RAM to handle all of these processes (i.e. optimization at this point to limit the number…

dter
- 101
- 1
0
votes
1 answer
Pip + virtualenv + Redhat SCL + proxy = not working
I am setting up a virtualenv based on Python 2.7 in Redhat Enterprise 6 (which ships with 2.6.x by default).
I installed the SCL 2.7 version of Python and then created the virtualenv:
$ scl enable python27 bash
$ cd /my/project
$ virtualenv -v…

user3758232
- 109
- 5
0
votes
0 answers
Gunicorn Flask Deployment with Supervisord doesn't find command on boot
I am deploying a Flask application with Gunicorn, Nginx and Supervisord.
Here is my config file for the application:
[program:apwd-flask]
command = /home/aaron/dev/apwd-flask/venv/bin/gunicorn --workers=3 wsgi:app -b localhost:8000
directory =…

Alpaus
- 101
- 3
0
votes
1 answer
sudo (-E) doesn't preserve path, even when configured appropriately
I have circus installed in a python virtualenv using virtualenvwrapper, and I want to run it with sudo. Sounds simple, right? Unfortunately even after reading man sudo and man sudoers, I don't succeed in getting the normal user's PATH to stick…

antgel
- 131
- 7
0
votes
1 answer
Installing scipy in virtualenv on Elastic Beanstalk
I'm using Amazon's Elastic Beanstalk to deploy an example Flask app. I can get a simple "Hello World" app deployed perfectly, but now I'm trying to deploy the app with scipy as a requirement.
I've included the necessary packages in my…

Dylan Fried
- 1
- 1
0
votes
1 answer
How to debug 403 error on Cent OS?
I'm trying to install phpMyAdmin and I'm getting a 403.
/etc/httpd/conf/httpd.conf
Order Deny,Allow
Allow from all
/etc/httpd/conf.d/phpMyAdmin.conf
…

user281527
- 1
- 1
0
votes
2 answers
Packaging a virtualenv
I'd like to package a Python virtualenv with fpm, so that I can deploy it to my servers. I want to setup the virtualenv somewhere in my home directory without having to use root permissions, but deploy to e.g. /opt. virtualenv itself seems to have…

brejoc
- 31
- 1
- 6
0
votes
1 answer
Python code location on debian
Simple question, which of these is a better directory setup for locating my project and why, as I have seen both recommended on different tutorial sites:
Option 1:
/var/www//project
/var/www//venv
Option…

Jimmy
- 269
- 4
- 7
- 23
0
votes
4 answers
Trying to use virtualenv Django 1.4.1
I have Django 1.2.1 on the server.
I need to use virtually Python to install Django 1.4.1 and an adapter to PostgreSQL which I want.
I am trying to set up this software on my server.
So I run
virtualenv --python=python2.6 env
. env/bin/activate
pip…

Léo Léopold Hertz 준영
- 809
- 6
- 22
- 43
0
votes
1 answer
Trouble with $PATH on debian
I think I have a problem with $PATH. I am running a shell script and it is complaining that it doesnt recognize the command even though when I run it manually it does.
Shell Script:
#!/bin/bash
#…

Jimmy
- 269
- 4
- 7
- 23