Earlier quoted context omitted.
pipenv combine pip and venv. It's not just about activating. If you install, it will create the virtualenv if it's missing. It also, like pew, opens the virtualenv in a new shell instead of activating the current shell. A much saner approach. The UI is also more user friendly: one entry point for everything, pretty colors and icons, auto-correct of package name, and so on. Using Pipfiles, instead of requirements, are…
Does it install and manages different python versions? Pyenv does
My Python Development Environment, 2018 Edition
191–200 of 224 posts
Re: My Python Development Environment, 2018 Edition
#192I’m using Anaconda because it was recommended in a step by step tutorial for playing with deep learning. What would be involved in removing it from my system and moving instead to this set of tools? Not necessarily looking for s step by step answer, just for general suggestions. My guess is: find out which python the deep learning tools are using, remove Anaconda, and reinstall the python version needed, using the to…
Thanks for the replies everybody. One thing that's still confusing to Python tourists (my word for myself since I am usually programming in a different language, but come to Python occasionally to do something) is that everyone talks about pip, when actually it seems pip3 is required to install when using Python 3. Is this no longer the case? Or do people just say "pip" when they mean "pip3"? Or are people actually s…
/usr/local/bin/pip*
/usr/local/bin/pip2*
/usr/local/bin/pip2.7*
/usr/local/bin/pip3*
/usr/local/bin/pip3.5*
/usr/local/bin/pip3.6*Re: My Python Development Environment, 2018 Edition
#193Re: My Python Development Environment, 2018 Edition
#194Earlier quoted context omitted.
> pyenv is now deprecated and venv is recommended Isn't it `pyvenv` that is deprecated? `pyvenv` != `pyenv`
Yes, you are right. See, that's the other (#%#$^#$%#$ - excuse my Chinese) confusion. Such conflicting name pyvenv and pyenv , someone really could have picked a better name, whoever came later. Corrected in my post.
⟩ pyenv --version
zsh: correct 'pyenv' to 'pyvenv' [nyae]?
Re: My Python Development Environment, 2018 Edition
#195It it considered best practice or advisable to run production deployments in a virtualenv? I have always considered it to be a tool for managing multiple development efforts on the same machine, not as production environment management.
Re: My Python Development Environment, 2018 Edition
#196Earlier quoted context omitted.
So you're using Docker instead of virtual environments? I feel there is much more overhead with Docker, but I could be wrong. Maybe I need to try it out again!
No, it's pretty much the same as you remember it. Using docker instead of just a normal virtualenv is overkill.
Re: My Python Development Environment, 2018 Edition
#197I have added PyInstaller ( http://www.pyinstaller.org/ ) to my toolchain recently for working with Python app distribution. It gets me pretty close to the Golang single distributable executable ideal... the main issue is needing to build on each target OS, which kind of sucks but I can deal with.
Re: My Python Development Environment, 2018 Edition
#198Earlier quoted context omitted.
Anaconda does most of the stuff mentioned, and also makes it much easier to install packages based on C/C++ libraries (which most deep learning things are). So you're better off staying with anaconda. It's widely used in commercial data science projects so the idea that noone "takes it seriously" as someone else suggests is a bit silly. I assume they're thinking about a different context to data science projects. Tha…
Anaconda was the competition pip needed to become good. When Anaconda was introduced, I (a pip person), was impressed. However, at work we had pip workflows that were working okayish, so I never made the switch. Today, pip et. al. has so dramatically improved, that I hardly see a reason to use anaconda. I am not using deep learning stuff, so I cannot comment on this, but for most scientific python stuff (scikit learn…
Anaconda integrates pip, it doesn't not compete with it.
I find that Anaconda is the best among the virtual python envs I tried; It does as good or better job of separation and tracking installations as any, AND falls back to pip (with complete integration and tracking) when a package is not in the conda repos.
pip inside conda works better than pip outside in my opinion. I don't understand the general sentiment towards (ana)conda.
Re: My Python Development Environment, 2018 Edition
#199Earlier quoted context omitted.
> Anaconda is the easiest tool too install all dependencies. For hobbyist stuff that’s fine, and I applaud lowering the entry barrier. My issue would be if I needed Anaconda to deploy the project/dependencies into “prod” in some professional capacity, instead of standard Python build tools. Having said that, I’m not terribly familiar with Anaconda, and it seems to leverage virtualenv under the hood, possibly with pre…
Anaconda does not leverage virtualenv under the hood. Anaconda does not use wheels as part of that. However, you can use pip and virtualenvs within Anaconda, but you'll probably get some inconsistent results. The reason that Anaconda exists is to make it easier for people to have consistency between their dev environment, the build environment, and the prod environment. If you're seriously going to build all of the s…
I've never tried virtualenvs inside anaconda (what would the use case be? anaconda already provides a virtual environment)
pip is perfectly integrated within anaconda, in my experience; What inconsistencies are you talking about?
Re: My Python Development Environment, 2018 Edition
#200Earlier quoted context omitted.
What is the issue with PyQt5?
PyQT5 is actually packaged, and I was just being lazy in my comment. It's actually pyqtchart and qscintilla that are the problems. They're not packaged for nix and won't install in a virtualenv with pip. Something to do with hardcoded paths for dependencies I think. I'm going to have a go at writing a nix files that build them from source, with the help of a NixOS expert, so we'll see how that goes.