0
0

More than 1 year has passed since last update.

pythonのパッケージ作成でのエラー対応

Last updated at Posted at 2021-09-25

環境
Ubuntu 18.04
python3.8

pythonでパッケージを作り配布する際、今までexeファイルに変換しないといけないのかと思っていました。
しかし、以下のコマンドを実行するとパッケージを作成できることを学びました。
````

python3 setup.py sdist

初回これを実行すると以下のエラー発生しました。

Traceback (most recent call last):
   File "./configure", line 22, in <module>
     from distutils.spawn import find_executable
 ModuleNotFoundError: No module named 'distutils.spawn'

調べたところpythonのpython3-distutilsをインストールしないといけないことが分かり。
インストールしました。
```

apt install -y python3-distutils

インストール完了後、再度、コマンドを実行して無事、パッケージを作成できました。

0
0
0

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
0