Questions tagged [virtualenv]
56 questions
33
votes
7 answers
How to display the name of the current Virtualenv?
I'm using virtualenv, virtualenvwrapper, zsh, oh-my-zsh, terminator, on Crunchbang.
I'm trying to display the name of the current virtualenv like so
workon example
(example)...
I've tried many solutions none seems to work, here's my .zshrc file, I…
Lynob
- 4,054
- 12
- 44
- 73
32
votes
2 answers
How to run a command inside a virtualenv using systemd
I believe this should be simple but I can't get it to work properly.
These are the commands I can run on command line:
cd /home/debian/ap
# Start a virtualenv
source venv-ap/bin/activate
# This needs to happen inside the virtualenv and takes ~20…
sscirrus
- 475
- 1
- 6
- 10
13
votes
1 answer
How can install specific version of ansible?
How can I install a specific version of Ansible, using Yum or another method?
When I try to install version 2.0 it says No package 2.0 available.
I checked the epel repo. There are only two rpms, but no rpm containing version 2.0. Why are they…
salauddin
- 325
- 2
- 3
- 6
7
votes
3 answers
Command '' not found + virtualenvwrapper error on ssh login (Ubuntu 18.04 x64)
when logging into my VPS with ssh keys, I get this:
Command '' not found, but can be installed with:
sudo apt install libpam-mount
...
sudo apt install nmh
virtualenvwrapper.sh: There was a problem running the…
W. Reyna
- 171
- 1
- 4
6
votes
3 answers
Equivalent to "source" in OpenBSD?
Trying to open a python3 virtual environment I have created with
python3 -m venv myVenv
by doing
source myVenv/bin/activate
as I do in Linux, but I get
ksh: source: not found
which mean it is not in my path/installed. When I try to add it with…
Salviati
- 189
- 1
- 12
5
votes
3 answers
Running a Python script in Conda virtual environment as service
I recently wrote a Python program that is designed to communicate via SMPP SMS server.
The issue I'm facing is that I don't know how to run a Python script as a service on my Cent OS server using Conda virtual environment. I'm using a lot of…
David Swan
- 61
- 1
- 1
- 2
4
votes
1 answer
debian 8 (jessie) - virtualenv with python3.6
so i have a fresh debian install. I installed pythons 3.5,3.6,3.7:
root@m2:~# apt-get install python3.{5,6,7}-dev
and try to set up some virtualenvs:
for i in 5 6 7 ; do dir=venv3.$i; echo $dir; mkdir $dir; virtualenv $dir --python=python3.$i;…
murison
- 163
- 1
- 6
4
votes
0 answers
Where to install Miniconda on Linux system?
I'd like to install miniconda so I can manage my Django projects with order, but I don't appreciate its suggestion to install on my home folder. I've installed many times in /opt but I need to alter permissions.
What's a good location for installing…
user120282
3
votes
2 answers
Install virtualenv for python2.7 on debian 10
I want to use python2.7 with virtualenv. I recently upgraded from debian 8 to debian 10. I originally had python2.7 and pip installed on debian 8, but maybe something happened during the installation and now I don't have pip. But I do still have…
mulllhausen
- 2,648
- 9
- 36
- 42
3
votes
1 answer
Can I run the command in specific terminal?
OS: Linux mint 19.2 Cinnamon
SHELL: Zsh
TERMINAL: Tilix
I want to create a shell script. which have 2 steps.
Open the new terminal.
Run source bin/activate at terminal that I opened.
How do I run source bin/activate command in specific shell?
I…
pastelkona
- 31
- 3
3
votes
0 answers
Safely managing system/local/project Python packages?
The context
I'm currently running a Gentoo desktop and want to move towards doing proper Python development on my system.
I have tried to install some packages, namely docker-compose, through the Gentoo's emerge system. Due to docker-compose's…
Matt Mazzanti
- 31
- 1
3
votes
0 answers
(Errno 30: Read-only file system) when creating python virtualenv in shared folder
I am running Ubuntu 17.10 trying to create a python virtual enviroment (named "my_virtualenv") inside my VBOX shared folder with the idea to use this python interpreter in pycharm from my Windows host. (Just to see if its possible)
The shared folder…
Trantidon
- 31
- 1
- 3
3
votes
1 answer
Ubuntu: Process vfs-worker taking all CPU resources
My Cloud9 (Ubuntu-based cloud IDE) began to be unresponsive after I tried to save some files (they didn't save to my cloud workspace). It shows 100% CPU utilization and a process that takes all CPU power.
Here is the error from which the 100% CPU…
Peter Gerhat
- 1,202
- 5
- 17
- 30
2
votes
2 answers
Set alias to run python venv setup based on current directory name
Can't seem to figure out what the issue is. This is on a Fedora 37 with default setup (bash, gnome, etc...).
What I want to achieve is to create an alias that creates a python virtual environment, where the folder name for the virtual environment is…
calexandru
- 210
- 1
- 7
2
votes
1 answer
Cannot source file using find, fzf, and xargs
I am trying to use fzf to select and activate different virtual environments. However, I am receiving the follow error:
xargs: source: No such file or directory
My command comprises three parts: find | fzf | xargs (1) find locates my virtual…
user2514157
- 195
- 9