LoginSignup
0

More than 5 years have passed since last update.

UbuntuのPythonが何bit版か調べる方法

Last updated at Posted at 2018-02-20

コメント欄でもっと良い方法を教えていただきました。

実行した環境

  Ubuntu Studio 17.10

参考にしたサイト

KIWAMIDEN さん
https://kiwamiden.com/examine-the-execution-environment-of-python

BIT

Windowsと違いUbuntuのPythonは何bit版かわかりません。
ネットで検索すると上記のサイトに方法が載っているのですが、上記の記事だけだと実行できませんでした。
Pythonのオンラインドキュメントを調べるとImportが必要みたいです。
これも、Verの違いでしょうか?

bit
$ python
・・・
>>> from struct import *
>>> calcsize(str('P')) * 8
64 

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0