r/Python • • Nov 14 '17

Senior Python Programmers, what tricks do you want to impart to us young guns?

Like basic looping, performance improvement, etc.

1.3k Upvotes

629 comments sorted by

View all comments

Show parent comments

2

u/hecklerponics Nov 14 '17

Is there a tutorial anywhere on virtualenv that you'd recommend? I've messed with it, but every time I compile I get a mess of errors; which I assume is because I'm installing packages at a system-level :(

2

u/[deleted] Nov 29 '17

I would avoid it. Use ‘python -m venv’ with python3.3+

virtualenv copies python binaries, but does not handle linked libraries embedded in the files. So if you build python from source and install in non-system directories using relative library paths, then it chokes.