0
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?

More than 5 years have passed since last update.

[Pipenv]”Could not find a version that matches xxx”で突然 Install Errorが発生した件

0
Last updated at Posted at 2020-02-01

事象

Pythonの開発環境は、最近流行りのPipenv使ってるのですが、突然パッケージインストール時に以下のErrorが発生しました。。。

ERROR: ERROR: Could not find a version that matches autopep8
No versions found
Was https://pypi.org/simple reachable?

ちなみに、実行コマンドは

なんで? (仮説)

正直、いろいろ調べたんですが、根拠不明です。。。。
とりあえず、やったことから逆説的に原因を推測してます。

原因

  1. xcodeがUpdateされて、バージョン上がった
  2. xcode-selectもバージョンアップされて、利用規約同意が必要になった
  3. 結果、インストール時にxcode-selectが必要な処理の段階でError -> ここは推測
    4. 今回は、パッケージのバージョン参照処理でxcode-selectが必要だった
    5. xcode-selectが使えないので、バージョン参照できずにError

なんで気づいたの?

いろいろ調べて、とりあえず
brew update, upgredeやってみたら、処理中にxcode-select installしてねってメッセージが出た。
おや?と思い、AppStoreでアップデートを確認。
すると、xcodeが直近でアップデートされてた。。。いつの間に。。。。
とりあえず、Python環境構築で、xcode-select必要だったから、もしやと思い、xcode-selectのアップデート(特に利用規約同意が重要)してみたら、解決した。。。

最後に

はじめまして。Qiita初心者で初投稿です。
仕事のみでプログラミングしてましたが、最近プライベートでもいろいろ独学でプログラミングを始めたので、気楽に、Qiita投稿始めることにしました。
割とエラー遭遇率も高い気がするので、少しでも共有できればと。
書き方などに関する指摘大歓迎です。これから、よろしくお願いします。

0
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
0
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?