Site Map - skip to main content - dyslexic font - mobile - text - print

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


From Wed 20th December 2017 all the media from the HPR feeds will be served via a redirect towards Archive.org. Please notify admin@HPR of any issues.

Our hosting is kindly provided by Josh from AnHonestHost.com. We would appreciate it if you could donate to help reduce his costs in funding the hosting.
He is also accepting bitcoins to 1KsxJr9HtsdaUeU7yaV9bk9bQi21UPBtUq

hpr2288 :: Installing and using virtualenvwrapper for python

Installing and using virtualenvwrapper for python, (What I learned the hard way!)

<< First, < Previous, Latest >>

Hosted by Knox on 2017-05-10 is flagged as Explicit and is released under a CC-BY-SA license.
Listen in ogg, spx, or mp3 format. | Comments (3)

Installing Virtual env wrapper in linux

Best documentation I have found for working with virtualenvwrapper:
http://python-guide-pt-br.readthedocs.io/en/latest/dev/virtualenvs/

Assuming you have pip installed.

  1. Install virtualenv
    sudo -H pip install virtualenv
  1. Install virtualenvwrapper
    sudo -H pip install virtualenvwrapper
  1. Modify your .bashrc file to include that following lines:
    export WORKON_HOME=~/Envs
    source /usr/local/bin/virtualenvwrapper.sh
  1. Test the commands:

    • mkvirtualenv <project_name>
    • rmvirtualenv <project_name>
    • lsvirtualenv (Lists all virtual environments you have created.)

    • workon <project_name>
    • deactivate

  2. Don't use SUDO when installing inside the virtualenv


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2017-05-11T15:57:28Z by droops

Great episode

Very technical and cool, please keep them coming!

Comment #2 posted on 2017-05-16T18:19:14Z by BiasOpinion

More Python Help Please

Long time programmer, trying to learn Python on my spare time.
Very helpful. Just what I needed!

Like that you convey the information without an ego getting in the way!

Comment #3 posted on 2017-05-31T19:42:56Z by Windigo

Excellent advice

Virtualenv was something I didn't get into until later into my learning, and it made things much nicer to work with. Thanks for bringing attention to it!

Don't tell Ken or Dave, but I'll look into doing some Django shows.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to
record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the P in HPR stand for ?
Are you a spammer →
Who hosted this show →
What does HPR mean to you ?