1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Venv環境でのライブラリインストール時の setuptools>=40.8.0 (from versions: none) エラー対処法

Last updated at Posted at 2024-04-02

現象

Venv環境で pip install を行うと、setuptools>=40.8.0 (from versions: none) エラーが発生し、インストールできないライブラリある。

  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [2 lines of output]
      ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
      ERROR: No matching distribution found for setuptools>=40.8.0
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

対処法(Venv環境で実行)

wheel(pip install時に使われるライブラリ)をインストールする。

pip install wheel

pip install に --no-build-isolation オプションを付けてライブラリをインストールする。

pip install --no-build-isolation <ライブラリ>

(参考サイト)

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?