Skip to content

Tag: virtualenv

virtualenv activate does not work

I am trying to create a virtual environment to test an api. I can create the environment just fine using virtualenv test, then I can cd into it. When I try to run activate, I get this error: I recently updated windows, and it replaced the cmd with Windows Powershell. My virtualenv worked fine with the cmd, so…

How to rename a virtualenv in Python?

I misspelled the name of the virtualenv while initializing it using: I actually intended to create the environment with the name venv. Having tried to rename the vnev folder to venv, I find that this doesn’t provide much help. The name of the activate environment still renames the old vnev. I would like…

Unable to install boto3

I have trouble installing boto3 inside a virtual environment. I have done what the document says. First I activated virtual environment. then I did a: Now I enter python But if I import boto, it works Why does it install boto 2.38 when I installed boto3. I tried closing the terminal and re-opened it. Should I…

how to deactivate virtualenv from a bash script

I’m a novice in shell scripting, but I want to make a bash script for activate/deactivate a virtual enviroment using virtualenv. Then I want to use this script like a service in Ubuntu copying it inside /etc/init.d folder. In my script, I have a variable like this: VENV=/opt/odoo/odoo_server/venv_oddo/b…

Why do people create virtualenv in a docker container?

You can build a container with Dockerfile in a few seconds. Then why do people need to install a virtual enviroment inside the docker container? It’s like a “virtual machine” in a virtual machine ? Answer I am working with virtualenvs in Docker and I think there are several reasons: you may …

Running bpython inside a virtualenv

I have created a virtualenv and installed SQLAlchemy in it: import works in python: But it does not work in bpython: Why can’t bpython find the package installed in the virtualenv, even though it is executed after source alchemy/bin/activate is called? Answer bpython must be installed in the virtualenv,…