Python version check V outputs standard error output

I was impatient because I couldn't assign it to a shell variable 3 is normally standard output.


$ python -V 1>/dev/null
Python 2.7.9
$ python -V 2>/dev/null
$
$ python3 -V 1>/dev/null
$ python3 -V 2>/dev/null
Python 3.4.3

[I haven't written] -v But I want you to stop because I'm impatient (I'm stopping)

Recommended Posts

Python version check V outputs standard error output
Error resolution python version check
Check version with python
Receives and outputs standard output of Python 2 and Python 3> C implementations
Petit stray Python version output
Check OpenSSL version of python 2.6
Make standard output non-blocking in Python
UnicodeEncodeError struggle with standard output of python3
Output timing is incorrect when standard (error) output is converted to a file in Python
Let's write FizzBuzz with an error: Python Version
How to output "Ketsumaimo" as standard output in Python
[CentOS8] How to output Python standard output to systemd log
Python nan check
python grammar check
python learning output
[Python] Standard input
Django version check
Python Error Handling
PYTHON2.7 64bit version
[OpenLDAP] Version check
Get standard output in real time with Python subprocess
Output log in JSON format with Python standard logging
Runtime version of Google App Engine / Python Standard Environment