What does “error: option --single-version-externally-managed not recognized” indicate?

后端 未结 7 1246
误落风尘
误落风尘 2020-11-27 03:54

I seem to have suddenly started encounter the error error: option --single-version-externally-managed not recognized when pip installing varions pa

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 04:36

    New Update:

    Install the latest version of setuptools. If you still get the error, install wheel as well.

    pip install -U setuptools
    pip install -U wheel
    

    Original Answer / More Details:

    --single-version-externally-managed is an option used for Python packages instructing the setuptools module to create a Python package which can be easily managed by the host's package manager if needed, like Yum or Apt.

    If you're seeing this message, you may have an old version of setuptools or Python. Try using Distribute, which is a newer version of setuptools and is backwards compatible. These packages may expect that you have it already.

    https://pypi.python.org/pypi/distribute

    Edit: At this point, distribute has been merged into the main setuptools project. Just install the latest version of setuptools. As @wynemo indicated, you may wish to use the --egg option instead, as it's more appropriate for those doing manual installations where you're not intending to create a system package for distribution.

提交回复
热议问题