3

timeit をインストールしようとしていますが、これが得られます。

$ sudo pip install timeit

Downloading/unpacking timeit
  Could not find any downloads that satisfy the requirement timeit
No distributions at all found for timeit
Storing complete log in /Users/username/.pip/pip.log
4

3 に答える 3

6

timeit2.3 以降、Python 標準ライブラリの一部です。pip経由でインストールする必要はありません。

于 2014-05-16T15:22:10.967 に答える
4

これは、timeit が組み込みの Python モジュールであるためです。そのために pip を使用する必要はありません。

https://docs.python.org/2/library/timeit.html

Python に含まれるモジュールの一覧を次に示します。Python がインストールされている限り、次のものが必要です: https://docs.python.org/2/library/

于 2014-05-16T15:20:28.600 に答える