C:\Python39\libs> pip install pyadomd
Collecting pyadomd
Using cached pyadomd-0.1.0.tar.gz (5.2 kB)
Preparing metadata (setup.py) ... done
Collecting pythonnet
Using cached pythonnet-2.5.2.tar.gz (1.9 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pycparser in c:\python39\lib\site-packages (from pythonnet->pyadomd) (2.20)
Using legacy 'setup.py install' for pyadomd, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pythonnet, since package 'wheel' is not installed.
Installing collected packages: pythonnet, pyadomd
Running setup.py install for pythonnet ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\some_username\\AppData\\Local\\Temp\\2\\pip-install-xseq24q1\\pythonnet_bf3f0e493d964733872d8df8031a0b0a\\setup.py'"'"'; __file__='"'"'C:\\Users\\some_username\\AppData\\Local\\Temp\\2\\pip-install-xseq24q1\\pythonnet_bf3f0e493d964733872d8df8031a0b0a\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\some_username\AppData\Local\Temp\2\pip-record-msa6cxi6\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python39\Include\pythonnet'
cwd: C:\Users\some_username\AppData\Local\Temp\2\pip-install-xseq24q1\pythonnet_bf3f0e493d964733872d8df8031a0b0a\
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\some_username\\AppData\\Local\\Temp\\2\\pip-install-xseq24q1\\pythonnet_bf3f0e493d964733872d8df8031a0b0a\\setup.py'"'"'; __file__='"'"'C:\\Users\\some_username\\AppData\\Local\\Temp\\2\\pip-install-xseq24q1\\pythonnet_bf3f0e493d964733872d8df8031a0b0a\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\some_username\AppData\Local\Temp\2\pip-record-msa6cxi6\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python39\Include\pythonnet' Check the logs for full command output.
To resolve... I believe the setup.py file needs to be updated to include an explicit callout for Python 3.9?
As mentioned in this Stackoverflow post it seems that this library currently does not support Python 3.9 (originally released October 2020) or Python 3.10 (original released last month October 2021). When trying to install this library in with a Python 3.9 version using pip, I face the following error:
To resolve... I believe the setup.py file needs to be updated to include an explicit callout for Python 3.9?