Depending on your system and compute requirements, your experience with PyTorch on Linux may vary in terms of processing time. ❯❯ ~ python -c 'import platform print(platform.PyTorch can be installed and used on various Linux distributions. ❯❯ ~ python -c 'import platform print("".format(platform.python_version_tuple()))' ❯❯ ~ python -c 'import platform print(platform.python_version())' ❯❯ ~ python -c 'import sys print(sys.version_info)' sys.version_info(major=3, minor=11, micro=0, releaselevel='final', serial=0) ❯❯ ~ python -c 'import sys print((str(sys.version_info.major) +"."+ str(sys.version_info.minor)))' V:3.9 C:\Program Files\Python39\python.exe The default Python version and the paths of all installed versions on Windows: py -0p usr/local/lib/python2.7/test/test_site.pyo usr/local/lib/python2.7/test/test_site.pyc usr/local/lib/python2.7/test/test_site.py usr/lib/python2.6/site-packages/site.pyc Multiple installations will have output something like this: /root/Python-2.7.6/Lib/site.py The output for a single Python installation should look something like this: /usr/lib64/python2.7/site.py ![]() ![]() Locate site.py # All installations I've ever seen have this This is my rough-and-ready approach to finding out what versions are installed: updatedb # Be in root for this You may have other versions installed and this can cause problems, particularly when installing additional modules. Although the question is "which version am I using?", this may not actually be everything you need to know.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |