Forse questo non era il forum giusto per postare questa richiesta, ma forse altre persone hanno avuto lo stesso problema e possono aiutarmi.
Dopo aver installato la console su un Windows Server 2019, ho iniziato a sviluppare i pacchetti.
Ho installato Python 2.7 e PyScripter IDE e, dopo aver risolto il problema delle "chiamate di metodo mancanti", ho inevitabilmente riscontrato altri problemi...
Gli script utilizzano librerie, il che è perfettamente normale.
Tuttavia, non tutti sono disponibili in modo nativo con Python, quindi devono essere scaricati tramite python-pip.
Alcuni non hanno causato alcun problema, ma questo (finora) sì: netifaces
Quando si tenta di installarlo, ecco parte del messaggio di errore:
Codice: Seleziona tutto
ERROR: Command errored out with exit status 1:
command: 'c:\python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\adminely\\appdata\\local\\temp\\2\\pip-install-byhnjj\\netifaces\\setup.py'"'"'; __file__='"'"'c:\\users\\adminely\\appdata\\local\\temp\\2\\pip-install-byhnjj\\netifaces\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\adminely\appdata\local\temp\2\pip-wheel-frrats'
cwd: c:\users\adminely\appdata\local\temp\2\pip-install-byhnjj\netifaces\
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
building 'netifaces' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
----------------------------------------
ERROR: Failed building wheel for netifacesCodice: Seleziona tutto
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27Ancora una volta mi scuso se questo post non è pertinente, ma poiché wapt è sviluppato principalmente in Python, ho pensato che avrei potuto trovare aiuto.
Sinceramente,
