Memo/Python/Error

https://dexlab.net:443/pukiwiki/index.php?Memo/Python/Error
 

Error


UserWarning: Setuptools will stop working on Python 2で止まる

  • 環境
    • CentOS 7
    • Python 2.7.5 (system)
    • pip 20.1.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
    • setuptools 46.4.0
  • Error
    /usr/lib/python2.7/site-packages/pkg_resources/py2_warn.py:21: UserWarning: Setuptools will stop working on Python 2
    ************************************************************
    You are running Setuptools on Python 2, which is no longer
    supported and
    >>> SETUPTOOLS WILL STOP WORKING <<<
    in a subsequent release (no sooner than 2020-04-20).
    Please ensure you are installing
    Setuptools using pip 9.x or later or pin to `setuptools<45`
    in your environment.
    If you have done those things and are still encountering
    this message, please follow up at
    https://bit.ly/setuptools-py2-warning.
    ************************************************************

urllib3: SNIMissingWarning: An HTTPS request has been made

  • 環境
    • CentOS 7
    • python-2.7.5-16.el7.x86_64
  • 問題が出たpython versionとaws version
    aws --version
    aws-cli/1.16.228 Python/2.7.5 Linux/3.10.0-123.9.3.el7.x86_64 botocore/1.12.218
  • python-2.7.5-76.el7.x86_64へ更新とssl周りのパッケージを更新したら解消した
    sudo yum update python ca-certificates curl nss

Moving UNKNOWN-4.1.1-py3.5.egg

pytestインストール時に以下のエラーが出た。

zip_safe flag not set; analyzing archive contents...
Moving UNKNOWN-4.1.1-py3.5.egg to /home/user01/example/.eggs
  • 環境
    pip list
    Package    Version
    ---------- -------
    pip        18.1   
    setuptools 28.8.0
  • setuptools更新したら直った。
    pip install setuptools --upgrade
    
    pip list
    Package    Version
    ---------- -------
    pip        18.1   
    setuptools 40.6.3

'extras_require' must be a dictionary whose values are strings or lists of strings ...

  • 環境
    • Raspbian GNU/Linux 8.0 (jessie)
    • python3 --version: Python 3.4.2
    • pip3 --version: pip 18.1
      sudo pip3 install smbus2
      Collecting smbus2
        Downloading https://files.pythonhosted.org/packages/c6/be/6eab4b27693ec2c87f7ff864dfca86c58fbfd1627acbe191dd2f18e0ac3e/smbus2-0.2.1.tar.gz
          Complete output from command python setup.py egg_info:
          error in smbus2 setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
  • 解決方法
    sudo pip3 install --upgrade setuptools
    
    pip3 list | grep setuptools
    setuptools         40.5.0

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-05-27 (水) 10:57:48 (2d)