What does error: option --single-version-externally-managed not recognized indicate?
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.
How to fix error: option --single-version-externally-managed not recognized
The problem is that the windows-specific part of setup.py
at https://github.com/metabrainz/picard/blob/d141f019c2b88ab6a3a21c04110dad0522e36616/setup.py#L225-L236, in particular
generate_file('installer/picard-setup.nsi.in', 'installer/picard-setup.nsi', args)
tries to generate installer/picard-setup.nsi
from installer/picard-setup.nsi.in
. However, the source tarball on PyPI doesn't even include the installer
directory:
↪ tar tf picard-2.1.tar.gz | grep installer
↪
We've worked on the source distributions a bit last year (https://tickets.metabrainz.org/browse/PICARD-1373), but so far have only tested them on Linux.
If you want to use Picard on Windows, use the installer from https://picard.musicbrainz.org/downloads/.
Pip Pythonnet option --single-version-externally-managed not recognized
The problem was that I was using "pip" which referred to python2 pip, and should have been using pip3.
This fixed it for me:
$ sudo apt install python3-pip
$ pip3 install pythonnet==2.4.0
Can't build wheel and single-version-externally-managed not recognized error on pip install pythonnet WSL 2 VS Code
You need a newer version of Mono. The one you have does not support C# 7.3 that Pythonnet build needs.
How to fix error during pythonnet installation
From the Python.NET docs I can see it doesn't support python 3.9
. You can download wheel file from
here.
As your python
version is 3.9, download pythonnet‑2.5.2‑cp39‑cp39‑win32.whl
(for 32-bit python
version) or pythonnet‑2.5.2‑cp39‑cp39‑win_amd64.whl
(for 64-bit python
version).
Then specify a full path to wheel file for installation.
Example:
pip install C:\Users\User\Downloads\pythonnet‑2.5.2‑cp39‑cp39‑win_amd64.whl
Related Topics
Extracting Specific Columns in Numpy Array
Asyncio.Gather VS Asyncio.Wait
Tkinter Grid_Forget Is Clearing the Frame
When Should Iteritems() Be Used Instead of Items()
How Does Python's "Super" Do the Right Thing
What Is the Meaning of "Failed Building Wheel for X" in Pip Install
How Does My Input Not Equal the Answer
Appending List But Error 'Nonetype' Object Has No Attribute 'Append'
Pythonic Way to Combine For-Loop and If-Statement
Serving Dynamically Generated Zip Archives in Django
Define a Method Outside of Class Definition
Pyeval_Initthreads in Python 3: How/When to Call It? (The Saga Continues Ad Nauseam)