Questions tagged [virtualenv]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
17 views

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 ...
0
votes
0answers
8 views

Python venv module cannot add virtual environment name to PS1, when using PROMPT_COMMAND?

I use the official Git Bash prompt support for displaying the current branch as part of the prompt. My problem is that activating a Python virtual environment (python -m venv <dir>) using ...
0
votes
0answers
37 views

`pyenv` does not allow installation of latest Python version available on host

[Archlinux 5.4.14 with Python versions 2.7.16 and 3.8.1] For a reason I don't understand, I cannot install 3.8.1 using pyenv. $ /usr/bin/python -V Python 3.8.1 but $ tr "\n" " " < <(sed '/[...
2
votes
1answer
50 views

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 ...
0
votes
0answers
127 views

How to install a downloaded .deb file on Anaconda Environment

I am working on a system without superuser privileges (sudo doesn't work, apt doesn't work) and I'm trying to install certain packages, specifically: sudo apt install build-essential uuid-dev libffi-...
0
votes
0answers
112 views

I'm trying to install Tensorflow on venv on a mac. I keep getting this error:

tensorboard --logdir /Users/chris/Documents/tensorflowlogs TensorFlow installation not found - running with reduced feature set. I literally just installed TensorFlow. This doesn't make sense. Any ...
0
votes
1answer
49 views

What is the correct way of installing virtualenv for Python?

What is the correct way of installing virtualenv for Python? Should I do sudo apt-get install python3-virtualenv or pip3 install virtualenv? I'm using Ubuntu 19.04.
0
votes
0answers
162 views

How to install 32-bit python package on 64-bit system with conda install

I am running ubuntu 16.04 and using 64 bit version of anaconda. I am looking to create 32-bit python virtual environment in a 64-bit machine. Is it possible to do this?
5
votes
3answers
1k views

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 ...
2
votes
3answers
711 views

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 ...
4
votes
1answer
1k views

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; ...
0
votes
3answers
99 views

Patching a bash function

I have a shell function (ok, it's the deactivate() function defined by a Python virtualenv), and I would like to patch it by inserting some statements before or after it's executed. My goal is to have ...
3
votes
0answers
68 views

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 ...
1
vote
1answer
154 views

Is it possible to save binaries that pip compiles while installing a package?

I'm working on a project for a Raspberry Pi 3. One of the things my project requires is cython. Running pip install cython on a Raspberry Pi inside of a virtualenv takes about 40 minutes to complete, ...
1
vote
1answer
3k views

How to install python3 on a remote server without root access - linux

I have inbuilt python 2.7 and pip. I am wondering if there is anyway I can install python3 and then make a virtualenv using python3.
0
votes
1answer
130 views

Activating virtual environment doesn't import environment variables

I am trying to write a bash script which runs a couple of python management commands overnight. I read from other posts that you need to source the virtualenv to be able to import the environment ...
15
votes
1answer
10k views

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 ...
3
votes
0answers
4k views

(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....
2
votes
0answers
258 views

systemd uwsgi service fails to run automatically but runs when started from interactive session

I enabled the uWSGI service in systemd but it fails to run at startup, the log shows the following: Wed Nov 22 12:36:10 2017 - your processes number limit is 47903 Wed Nov 22 12:36:10 2017 - your ...
3
votes
0answers
826 views

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 ...
1
vote
0answers
194 views

setup mysql with django

I am trying to setup mysql server with my django application but I am having trouble installing it correctly. I used brew install mysql to install mysql server Then I used pip install mysqlclient ...
2
votes
0answers
176 views

Arch Linux / Virtualenv: Python 3.5 failed after system upgrade

I updated my arch linux system just now. It upgraded my Python 3.5 to 3.6. When using python in the main environment, it works fine: [yuanyin@YuanYin ~]$ python Python 3.6.0 (default, Jan 16 2017, 12:...
1
vote
1answer
53 views

Bash: `test` finds file but `source` wont

I use virtualenvwrapper to manage my Python environments. My global postactivate file — a Bash script that gets sourced, after a virtual environment is activated — contains the following: if [ -f '...
9
votes
1answer
19k views

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, ...
2
votes
0answers
328 views

Error creating virtual environment using venv

I am trying to set up a Python development environment on Centos7 , I am relatively new to both Linux and Python. I am following this guide to setup the environment but I am getting an error when I ...
-1
votes
2answers
1k views

Bash: pyvenv: command not found

I have Debian 8.5. with a python version 3.4.2 as default. I want to create a virtualenv using the python3 venv module. But running pyvenv in terminal is unable to find the pyvenv: bash: pyvenv: ...
2
votes
1answer
988 views

Python virtualenvwrapper and ZSH prompt

I am using archlinux with zsh and python simha@gauranga ~ % echo $SHELL /usr/bin/zsh simha@gauranga ~ % python3 --version Python 3.5.1 my .zshrc is export WORKON_HOME=~/.virtualenvs source /usr/...
3
votes
2answers
10k views

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 ...
0
votes
2answers
837 views

How Troubleshoot Failed Installation of pywfdb from pip?

Condition: unable to troubleshoot failed installation of the library/module pywfdb from pip Differential conditions: failed dependenciens of pywfdb Exclude: upstart/systemd design bugs with runit in ...
0
votes
2answers
168 views

python virtual environment

I have to install python package locally/globally on a machine using pip, so for I do not want to install pip on local machine. I can successfully create a new virtual environment using easy_install ...
1
vote
0answers
85 views

Issue in activating environment on UAT server

I was working on a script that logs in to UAT server, reroute to necessary folder and activates the virtual environment. Following is the script: function gotouat(){ branch=`getBranchName`; ...
1
vote
1answer
4k views

How do I use GNOME Keyring with Python Keyring in virtual environment?

I have written a Python script that I would like to run in the background on my Raspberry Pi. The script makes use of the Python module Keyring (link), which is used to access a keyring backend to ...
0
votes
1answer
422 views

No paths getting set on login - bash not loading correctly?

I don't know if this is because of virtualenv, but I ran the virtualenv command to set up a tensorflow environment. Now no paths get loaded at all. Nothing works. To do even basic commands (such as ls)...
0
votes
2answers
984 views

Is it possible to redirect a local port to a LAN port?

I'm using a Flask application with virtual environment. When I start the server, I can access it locally via the IP 127.0.0.1:5000, but I'd like to make it accessible on my WLAN (pointing at 10.0.0.1:...
1
vote
0answers
312 views

Run mkvirtualenv command as another user

I want to run the "mkvirtual sth" but I have to run the script as superuser. sudo ./install.sh install.sh looks like this: # ... mkvirtualenv sth # su - geeret -c "mkvirtualenv sth" # (tried this) ...
3
votes
1answer
692 views

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 ...
1
vote
1answer
2k views

Append to an environment variable without overwriting values from .env file

Assuming the .env file is loaded before execution, how can you append to it without overriding it? DEBUG=True FOO=BAR PYTHONPATH="/Users/James/project/" The above file would (?) override it, and ...
22
votes
5answers
39k views

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 ...
2
votes
1answer
285 views

Virtualenv creation seems to do nothing

I have a problem setting up a Virtualenv on my web host server (to install python modules later on) So far I tried this (over SSH): wget http://pypi.python.org/packages/source/v/virtualenv/...