What is the relationship between virtualenv and pyenv?

I recently learned how to use virtualenv and virtualenvwrapper in my workflow but I’ve seen pyenv mentioned in a few guides but I can’t seem to get an understanding of what pyenv is and how it is different/similar to virtualenv. Is pyenv a better/newer replacement for virtualenv or a complimentary tool? If the latter what … Read more

How to use MySQLdb with Python and Django in OSX 10.6?

This is a much discussed issue for OSX 10.6 users, but I haven’t been able to find a solution that works. Here’s my setup: Python 2.6.1 64bit Django 1.2.1 MySQL 5.1.47 osx10.6 64bit I create a virtualenvwrapper with –no-site-packages, then installed Django. When I activate the virtualenv and run python manage.py syncdb, I get this … Read more

How do I remove/delete a virtualenv?

I created an environment with the following command: virtualenv venv –distribute I cannot remove it with the following command: rmvirtualenv venv – This is part of virtualenvwrapper as mentioned in answer below for virtualenvwrapper I do an lson my current directory and I still see venv The only way I can remove it seems to … Read more

How to leave/exit/deactivate a Python virtualenv

I’m using virtualenv and the virtualenvwrapper. I can switch between virtualenv’s just fine using the workon command. me@mymachine:~$ workon env1 (env1)me@mymachine:~$ workon env2 (env2)me@mymachine:~$ workon env1 (env1)me@mymachine:~$ How do I exit all virtual environments and work on my system environment again? Right now, the only way I have of getting back to me@mymachine:~$ is to … Read more