0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

pipenv install にて古いプロジェクトをインストールしようとしたときにエラーが発生することがある

Posted at

はじめに

pipenv で jaconv をインストールすると、以下のようなエラーが発生してインストールできないことがある。 Ubuntu 24.04 LTS で発生を確認。

ERROR: Could not build wheels for jaconv, which is required to install pyproject.toml-based projects

こちらが再現性はないが、解決することがあったので忘れないように手順だけをメモする。

詳細条件

  • asdf でインストールした Python 3.10.16 および Python 3.11.11 にて確認
  • pipenv 2024.4.1 にて確認

解決手順

pipenv install を行うとエラーになるが、そのあと pipenv run pip install --upgrade pip "setuptools<69" wheel を1度実行すると、同一の Python バージョンではたとえ pipenv --rm を行って再インストールを行っても正常にインストールができるようになる。
また、古い setup.py を持つプロジェクトに対して発生するので、install_layout が廃止された setuptools のバージョン 69 未満 ("setuptools<69") を指定している。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?