@miurahimovic

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

pip install でのエラーについて

Q&A

Closed

解決したいこと

pip installについて質問があります。ご助言いただけますと助かります。
初めての質問のため、不躾な点がありましたら申し訳ありません。

python_dateutilを再インストールしたいと思っており、Requirementのsixは満たしていることを確認しています。
ーーーーーーーーーーーーーーーーー
C:\Users\Administrator\Documents\新しいフォルダー>py -m pip install --no-index python_dateutil-2.8.0-py2.py3-none-any.whl --find-links=c:\programdata\anaconda3\lib\site-packages
Looking in links: c:\programdata\anaconda3\lib\site-packages
Processing c:\users\administrator\documents\新しいフォルダー\python_dateutil-2.8.0-py2.py3-none-any.whl
Requirement already satisfied: six>=1.5 in c:\programdata\anaconda3\lib\site-packages (from python-dateutil==2.8.0) (1.16.0)
python-dateutil is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
ーーーーーーーーーーーーーーーーーー

上記の指示通り、--force-reinstall をつけてインストールしたものの、sixのバージョンが満たさないとエラーが出ました。
ーーーーーーーーーーーーーーーーーー
C:\Users\Administrator\Documents\新しいフォルダー>py -m pip install --no-index python_dateutil-2.8.0-py2.py3-none-any.whl --force-reinstall --find-links=c:\programdata\anaconda3\lib\site-packages
Looking in links: c:\programdata\anaconda3\lib\site-packages
Processing c:\users\administrator\documents\新しいフォルダー\python_dateutil-2.8.0-py2.py3-none-any.whl
ERROR: Could not find a version that satisfies the requirement six>=1.5 (from python-dateutil)
ERROR: No matching distribution found for six>=1.5
ーーーーーーーーーーーーーーーー

sixを見ると、1.5以上を満たしているのですが、上記のエラーが出る理由は何が考えられますでしょうか。ご助言いただけますと大変助かります。何卒よろしくお願いします。
ーーーーーーーーーーーーーーーーーーーーー
C:\Users\Administrator\Documents\新しいフォルダー>py -m pip show six
Name: six
Version: 1.16.0
Summary: Python 2 and 3 compatibility utilities
Home-page: https://github.com/benjaminp/six
Author: Benjamin Peterson
Author-email: benjamin@python.org
License: MIT
Location: c:\programdata\anaconda3\lib\site-packages
Requires:
Required-by: singledispatch, python-dateutil, pyOpenSSL, PyNaCl, patsy, pathlib2, multipledispatch, mkl-service, jsonschema, html5lib, h5py, cycler, conda-verify, conda-repo-cli, conda-package-handling, conda-content-trust, conda-build, bleach, bkcharts, bcrypt, argon2-cffi, anaconda-client
ーーーーーーーーーーーーーーーーーーーーーーーーー

0 likes

1Answer

原因は分かりませんが --no-deps オプションもつけて依存関係を無視すればいけるかもしれません。

0Like

Comments

  1. @miurahimovic

    Questioner

    ご教示いただいた通りで解決できました。ありがとうございました。

Your answer might help someone💌