DevOps Buzz
Search…
Initial page
About me
Ansible
Cheat Sheet
Dynamic inventory
AKS
Cheat Sheet
Autoscale
Backup
Dashboard
Ingress
Node management
News
Persistent Volumes
Arch Linux
Docker
Install
Network
VirtualBox guest
Azure
API
CLI/Powershell
DevOps
Application Gateway
Tools
Sops
AWS
Cheat Sheet
Tools
Cognito with Amplify and React
Bash / Shell
Cheat Sheet
Tools
Bitbucket
Cheat Sheet
CSS
Cheat Sheet
Distros
Manjaro
Docker
Cheat Sheet
ELK
Ubuntu NoVNC
Tools
Known errors and solutions
Elasticsearch
Cheat Sheet
Tools
ELK
Cheat Sheet
emacs
Cheat sheet
Gatekeeper (OPA)
Cheat Sheet
Developer Quick Start
GCP
Cheat Sheet
General
Tools
News
Git
Cheat Sheet
Tools
Golang
Cheat Sheet
Guidelines / Standards
Cheat Sheet
i3wm
Cheat Sheet
Ipsec
Cheat sheet
Istio
Cheat Sheet
Kind
Cheat Sheet
Kops
Cheat Sheet
Kubeadm
Cheat Sheet
Change serviceSubnet CIDR
Setup cluster
Multi master
Known errors and solutions
Kubernetes
Kubectl Cheat Sheet
etcd Cheat Sheet
Tools
News
Deployments
Dashboard
ELK
Helm
Ingress
logz.io
Minikube
Monitoring
Node Management
Operators
Security
Volumes
Networking
kube-controller-manager
Known errors and solutions
Lumen
Cheat Sheet
MACOS
Cheat Sheet
Qemu
Zsh
microk8s
Cheat Sheet
MongoDB
Cheat Sheet
Tools
MySQL
Cheat Sheet
Network
Tools
WDS - Wireless Distribution System
Expose server under NAT
nvim
Cheat Sheet
Openvpn
OpenVPN server on Ubuntu 18.06
Stunnel
PHP
Composer
Prometheus
Tools
Python
Cheat Sheet
Pydantic
Tools / Modules
Virtualenv
RabbitMQ
Cheat Sheet
ReactJS
Fixes
For beginners
Ruby
Cheat Sheet
Rails
rvm
Rundeck
Cheat Sheet
Rust
Cheat Sheet
Squid
Setup server
Expose NAT server
SRE
Cheat Sheet
SSH
Passwordless auth with RSA key
Reverse tunnel
Cheat Sheet
SSL
Cheat Sheet
certbot
STACK SETUP
Using EKS and Gitlab CI to deploy applications
Terraform
Cheat Sheet
Tools
Tmux
Cheat Sheet
Tor
Cheat Sheet
Ubuntu
Cheat Sheet
Vagrant
Cheat Sheet
VirtualBox
Cheat Sheet
Windows
Windows Docker
Fingerprint
SSH Client
Tools
VirtualBox
WSL
Powered By
GitBook
Virtualenv
Setup a virtualenv using virtualenvwrapper
Install virtualenvwrapper and create your first virtualenv
Install virtualenvwrapper
1
sudo
pip3
install
virtualenvwrapper
Copied!
Edit your
bashrc
file and add te following content.
~/.bashrc
1
export
WORKON_HOME
=
"
$HOME
/virtualenvs"
2
export
VIRTUALENVWRAPPER_PYTHON
=
/usr/bin/python3
3
source
/usr/local/bin/virtualenvwrapper.sh
Copied!
Then run.
1
source ~/.bashrc
Copied!
Create a virtualenv.
1
mkvirtualenv env1
Copied!
​
Setup .bashrc config
Add the following lines in your
~/.bashrc
file.
~/.bashrc
1
# Virtualenvs
2
export
WORKON_HOME
=~
/virtualenvs
3
source
/usr/local/bin/virtualenvwrapper.sh
Copied!
Useful commands
Change virtualenv
1
workon yourvirtualenvname
Copied!
"Logout" from a virtualenv
1
deactivate
Copied!
"cd" to your virtualenv automatically
Run this only one time.
1
workon yourvirtualenvname
2
echo
'cd $VIRTUAL_ENV'
>>
$WORKON_HOME
/postactivate
Copied!
References
​
https://hub.docker.com/r/chenjr0719/ubuntu-unity-novnc/
​
Python - Previous
Tools / Modules
Next - RabbitMQ
Cheat Sheet
Last modified
1yr ago
Copy link
Contents
Install virtualenvwrapper and create your first virtualenv
Setup .bashrc config
Useful commands
Change virtualenv
"Logout" from a virtualenv
"cd" to your virtualenv automatically
References