by PandaMilk · 15y ago · 0 comments
I can tell you my last expedition in Python land was bad. I ran into two problems: upgrading the version of Python that came on my Air and installing MongoEngine. For MongoEngine I used the instructions on their website "easy_install -U mongoengine". And after a bit of googling (I say a bit because a lot of people were having the same problem I was) I ended up installing PIP (via easy_install no less!) and then got into pathing problems.
Having to use one package manager to install a better package manager isn't polish. Again, I can agree that this might all just be familiarity and comfort (or lack of in this case).
I'm not so open to Django vs Rails though. I don't need to do a lot of struts to see how horrible it is (compared to anything). I don't need to do a lot of Django to see that it's behind Rails as a productive web frameworks. I'm not completely closed to the possibility that i'm just an idiot, but at this point it would likely take working with a guru for a couple weeks to change my mind.
Hint: pip -E yourenvdir install yourpackage
That will create a virtualenv and install the package there. You can just delete the env when you're done. You really shouldn't install things system-wide, generally...
- stock python 2.6.1 and /Library/Python/2.6/site-packages
- brew install python (which brings in python 2.7)
- brew install python3
... and a bunch of virtualenvs
Btw, I went with MongoKit after running into some index troubles using MongoEngine, worked like a charm.