virtualenv

Unable to uninstall virtualenv from debian 11

Unable to uninstall virtualenv from debian 11 My debian OS has been through a few upgrades and is now on 11 (Bullseye). I initially started out with python2 and now I no longer want it – I just want python3. I installed virtualenv a long while back when I was still working with python2. I …

Total answers: 1

Problem with created Python 3.6 virtual environment on Ubuntu 20.04 with Pip

Problem with created Python 3.6 virtual environment on Ubuntu 20.04 with Pip Subject: Issue with Segmentation Fault When Running pip list in Python 3.6 Virtual Environment I recently installed Python 3.6 and successfully created a virtual environment. However, when I try to execute the command ‘pip list’ within the virtual environment, I encounter a segmentation …

Total answers: 1

How to fix broken installation of virtualwrapper in Ubuntu?

How to fix broken installation of virtualwrapper in Ubuntu? On Ubuntu 20.04.4 and python 3.8.10 my virtualenvwrapper installation is broken. When I try mkvirtualenv test I get an error ERROR: virtualenvwrapper could not find virtualenv in your path for some reasons I am unable to install virtualenv anymore, as I use python -m venv myvenv …

Total answers: 1

Cannot source file using find, fzf, and xargs

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 environments, (2) a virtual environment …

Total answers: 1

Virtualenv installs envs into local/bin instead of bin

Virtualenv installs envs into local/bin instead of bin Problem: The bin directory of my virtual environment produced with virtualenvwrapper (which uses virtualenv under the hood) is located in the subfolderlocal instead which leads to breakage across the board (mostly virtualenvwrapper and vscode for now). Basically, these tools expect the interpreter in <envname>/bin and not in …

Total answers: 3

ModuleNotFoundError: No module named 'pip._vendor.six'

ModuleNotFoundError: No module named 'pip._vendor.six' I’m new to Ubuntu (20.04.2.0 LTS) and trying to get Python3.9.6 and Pip to work with Virtualenv. I hope some of you experienced Ubuntu users can help me 🙂 I have no problem using default Python (3.8.10): $ python3 -V Python 3.8.10 $ whereis python3 /usr/bin/python3.8 $ pip3 -V pip …

Total answers: 2

Unable to uninstall virtualenv on Ubuntu 20.04.2 LTS

Unable to uninstall virtualenv on Ubuntu 20.04.2 LTS $ sudo pip uninstall virtualenv WARNING: Skipping virtualenv as it is not installed. $ sudo pip3 uninstall virtualenv WARNING: Skipping virtualenv as it is not installed. $ sudo apt-get purge python-virtualenv Reading package lists… Done Building dependency tree Reading state information… Done Package ‘python-virtualenv’ is not installed, …

Total answers: 2

How to create python2.7 virtualenv on Ubuntu 20.04

How to create python2.7 virtualenv on Ubuntu 20.04 I want to run an application that uses python2.7 version, but by default python2.7 is not installed. When I tried to use: $ virtualenv -p python2 flaskold It returned: RuntimeError: failed to find interpreter for Builtin discover of python_spec=’python2′ How could I create python2.7 virtual environment on …

Total answers: 2

Equivalent to "source" in OpenBSD?

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 pkg_add, it just tell …

Total answers: 3

Command '' not found + virtualenvwrapper error on ssh login (Ubuntu 18.04 x64)

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 initialization hooks. If Python could not …

Total answers: 3

How to create virtualenv in Ubuntu 18.04

How to create virtualenv in Ubuntu 18.04 I have installed virtualenv: pip3 install –user virtualenv Then I was trying to create an environment for my folder with the next command: folder_name$ python -m venv ll_env But instead of the desired result I’ve got an error: __The virtual environment was not created successfully because ensurepip is …

Total answers: 1

How to run a command inside a virtualenv using systemd

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 seconds crossbar …

Total answers: 2

Unable to create venv with a different Python verison

Unable to create venv with a different Python verison I’m installed python 3.6 on my Ubuntu 17.04. Now, I’m trying to create virtual environment with command: python3.6 -m venv env but I’m getting the following message: The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install …

Total answers: 2

How can install specific version of ansible?

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 removed? Is …

Total answers: 1

Bash: pyvenv: command not found

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: command not found There is a venv directory in /usr/lib/python3.4. Why i am unable to …

Total answers: 3

Error installing scrapy in virtualenv using pip

Error installing scrapy in virtualenv using pip pip install scrapy Downloading/unpacking scrapy Downloading Scrapy-0.24.2-py2-none-any.whl (502kB): 502kB downloaded Downloading/unpacking pyOpenSSL (from scrapy) Downloading pyOpenSSL-0.14.tar.gz (128kB): 128kB downloaded Running setup.py (path:/home/elie/.virtualenvs/stat/build/pyOpenSSL/setup.py) egg_info for package pyOpenSSL warning: no previously-included files matching ‘*.pyc’ found anywhere in distribution no previously-included directories found matching ‘doc/_build’ Requirement already satisfied (use –upgrade to …

Total answers: 3

How to display the name of the current Virtualenv?

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 know it’s no big deal to fix it but …

Total answers: 7

How to set up and use a virtual python environment in Ubuntu?

How to set up and use a virtual python environment in Ubuntu? Python virtual environments are used to create isolated python environments to avoid dependency and version conflicts, and also indirectly take care of permission issues. But what is the easiest way to set it up, and use it, in Ubuntu? Asked By: Gerhard Burger …

Total answers: 4