Wonderous Ponder

IT and anything that fascinates me

Skip to content
  • Music

Recent Posts

  • O Come, All Ye Faithful – Piano Composition
  • The importance of perseverance and vision
  • Begin with the end in mind
  • On Being Proactive
  • Sainsbury’s SmartShop

Recent Comments

  • Joseph Roddy on How to Force a React Component to Reload when a Variable Changes
  • Mark on The importance of perseverance and vision
  • adazeng on How to Set Environment Variables with uwsgi
  • Dolapo Soboyede on How to Force a React Component to Reload when a Variable Changes
  • Dolapo Soboyede on How to Force a React Component to Reload when a Variable Changes

Archives

  • September 2019
  • July 2019
  • June 2019
  • May 2019
  • March 2019
  • December 2017
  • November 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • July 2016
  • May 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • January 2015
  • December 2014
  • October 2014
  • August 2014
  • July 2014
  • October 2013
  • June 2013
  • May 2013
  • March 2013
  • November 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • February 2012
  • December 2011
  • July 2011
  • June 2011
  • April 2011
  • March 2011
  • October 2010

Categories

  • Android
  • AngularJS
  • Apache
  • Audio
  • Cherrypy
  • Computers
  • CSS
  • Debugging
  • Django
  • Documentation
  • Eclipse
  • Editors
  • Essays
  • Excel
  • Flask
  • Git
  • Google Chrome
  • Graphics
  • Internet
  • iOS
  • Java
  • Javascript
  • Languages
  • Linux
  • Mac
  • Mail
  • Mathematics
  • Media
  • MS Office
  • Music
  • MySQL
  • Nginx
  • OS X
  • Philosophy
  • PHP
  • Postgres
  • Printer
  • Psychology
  • Python
  • Reactjs
  • Recipes
  • Reviews
  • Scanner
  • Scripts
  • Search
  • Security
  • Short Stories
  • SVN
  • Swimming
  • System Administration
  • Technology
  • Testing
  • Travel
  • Ubuntu
  • Uncategorized
  • Unix
  • uwsgi
  • Video
  • Websites
  • Zend Framework

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Category: Scripts

How to Activate virtualenv in a Script

Let’s say you want to write a script that executes a command inside a virtualenv, you can easily do this by using the source command available in Bash. Here’s a sample script

#!/bin/bash
source "/path/to/your/virtualenv/bin/activate"
yourcommand...
Posted on February 23, 2017Categories ScriptsLeave a comment on How to Activate virtualenv in a Script
Proudly powered by WordPress