3 ms·
This is going to sound sad, but I can't figure out how to install Python 3 and run a script with a single package. Seriously. I've programmed for 5 years, stud
by iposbeforehoes 13y ago
This is going to sound sad, but I can't figure out how to install Python 3 and run a script with a single package.
Seriously. I've programmed for 5 years, studied CS, and I really don't understand how to do it.
I have a Mac Book Pro Retina, so it ships with 2.7. I write Ruby in various versions via RVM, and I have no idea what version of Node I use, but I use it a lot.
Over the Holiday I decided to try to port some Node services to Python (mainly because they are analytics projects and I'd like to start using Python for analytics and "data science" ). And I struck out. Bad. Using Homebrew to install Python 3[.3] and no success with virtualenv and Pip. At best I get a pip-3.3 to install and crash anytime I try to install a package.
I would love to convert these services to Python 3. In fact, I'll regret not doing so. But at this point, it really isn't worth my time trying to figure it out. Once I accepted installing my packages via 2.7, I was able to convert the services (with tests!) over a long weekend.
I did a fair amount of research through Google and Stack Overflow, and each confirmed my suspicion that this process is shit.
I just saw a tweet by @holman where he described a friend saying 'how can ruby be such an easy language but be so hard to install?' And asserted that our industry still sucks (and in my opinion Ruby in any incarnation is infinitely easier than Python).
He is so right.
- rectangletangle 13y agoDid you try to compile Python from the source at any point? Or are your installation issues solely with PIP; if so, you can probably manually install packages with something along the lines of $python3 ./somepkg/setup.py install
- ribbit_flower 13y agoDid you try the Python installers - http://www.python.org/getit/ http://www.python.org/getit/ ? They usually seem to just work...