News for hackers. Stuff that matters.
Re:Text to speech in Python by haikuginger on Saturday June 24, 2017 @07:39PM (#14627933)
sudo pip install? Really?

You almost never want to use the system Python. Use pyenv[0] to install the version of Python you want, and then create a new virtual environment for each project.

[0]https://github.com/pyenv/pyenv

Re:Text to speech in Python by mythrwy on Saturday June 24, 2017 @10:19PM (#14628296)
That is addressed right before `sudo pip install`.

FTA: "Install using pyenv, pipenv or virtualenv.

If you are feeling brave, install with pip:"

Re:Text to speech in Python by e12e on Sunday June 25, 2017 @12:00AM (#14628558)
I can't think of a situation where plain "pip install" doesn't work that the correct fix is to use sudo.

I strongly think that if you're going to give advice on how to install, then you'd be better off suggesting:

  python3 -m venv speech-venv
  ./speech-venv/bin/pip install ...
  # or activate and use "pip install"
Re:Text to speech in Python by cdubzzz on Saturday June 24, 2017 @07:42PM (#14627941)
Re:Text to speech in Python by jgalt212 on Sunday June 25, 2017 @07:41AM (#14629605)
you need sudo for PyCryto or you need to su root b/c when it compiles on linux it needs to write to tmp directories that normal users cannot.
Re:Text to speech in Python by brittohalloran on Saturday June 24, 2017 @08:42PM (#14628079)
What are your thoughts on conda instead of virtualenv?
Re:Text to speech in Python by mythrwy on Saturday June 24, 2017 @10:31PM (#14628325)
Not the person you asked, but I personally don't care for conda.

I'd rather use standard Python packaging and virtual environments. Conda had a few "funnies", like adding lines to .bashrc interfering with system Python when I tried to use it later (easily fixed and not really a big deal, I just didn't care for it).

A client had some scripts that used it, and from that perspective I guess it saved a little time installing everything but not much. Not enough to have another Python version floating around in my opinion. Easy enough to just use regular Python.