3 ms·
Can I give you a tidbit of feedback? If the instance is ephemeral, I need to manage everything in HOME and that's fine. For Python, that basically means using
by toyg 9y ago
Can I give you a tidbit of feedback?
If the instance is ephemeral, I need to manage everything in HOME and that's fine. For Python, that basically means using Virtualenv. That works fine at the moment for python 2.7, but 3.x on Debian requires the package python3-venv, which is not installed by default - and sure enough, it's missing in Cloud Shell.
It's a bit annoying having to apt-get install python3-venv every time. Any chance it could be preinstalled? It's such an essential tool for modern python development...
- traverseda 9y agoYou can tell virtualenv to use an arbitrary python interpreter, even pypy, using `--python=/path/to/python/interpreter`.
- toyg 9y agoBut then I have to install the virtualenv script in every dev environment, when really the stdlib version is perfectly fine and requires no extra hacks. It's an annoyance specific to Debian and to this day I'm not sure I understand the rationale for splitting it out of the main python3 package.
- dundercoder 9y agoI'm building python 3.6.4 from source and stashing it in $HOME. No errors so far. EDIT: Worked great! @cloudshell:~/python3/bin$ ./ipython3 Python 3.6.4 (default, Jan 28 2018, 00:39:17) Type 'copyright', 'credits' or 'license' for more information IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help. In [1]: from __future__ import braces File "<ipython-input-1-6d5c5b2f0daf>", line 1 from __future__ import braces ^ SyntaxError: not a chance