#python #django #dependency-injection #pipenv #requirements.txt
#питон #джанго #инъекция зависимости #pipenv #requirements.txt
Вопрос:
Не удалось получить инжектор зависимостей и pyduktape в проекте Django requirements.txt. Он попросил установить Visual C 14.0 или выше, но он уже есть.
requirements.txt содержит инжектор зависимостей==3.15.6 и pyduktape==0.0.6 Пытался использовать Python 3.7, pip 21.3.1 и pipenv версии 2021.5.29
Building wheels for collected packages: dependency-injector, pyduktape Building wheel for dependency-injector (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:usersyasiruappdatalocalprogramspythonpython37python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\yasi ru\AppData\Local\Temp\pip-install-ai16fcys\dependency-injector_e905913ba3f247b096ecaaf379d20b5b\setup.py'"'"'; __file__='"'"'C:\Users\yasiru\AppData\Loca l\Temp\pip-install-ai16fcys\dependency-injector_e905913ba3f247b096ecaaf379d20b5b\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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(co de, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersyasiruAppDataLocalTemppip-wheel-23n96w5t' cwd: C:UsersyasiruAppDataLocalTemppip-install-ai16fcysdependency-injector_e905913ba3f247b096ecaaf379d20b5b Complete output (13 lines): running bdist_wheel running build running build_py creating build creating buildlib.win-amd64-3.7 creating buildlib.win-amd64-3.7dependency_injector copying srcdependency_injectorerrors.py -gt; buildlib.win-amd64-3.7dependency_injector copying srcdependency_injector__init__.py -gt; buildlib.win-amd64-3.7dependency_injector copying srcdependency_injectorcontainers.pxd -gt; buildlib.win-amd64-3.7dependency_injector copying srcdependency_injectorproviders.pxd -gt; buildlib.win-amd64-3.7dependency_injector running build_ext building 'dependency_injector.containers' extension error: Microsoft Visual C 14.0 or greater is required. Get it with "Microsoft C Build Tools": [https://visualstudio.microsoft.com/visual-cpp-build-tools/][1] ---------------------------------------- ERROR: Failed building wheel for dependency-injector Running setup.py clean for dependency-injector Building wheel for pyduktape (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:usersyasiruappdatalocalprogramspythonpython37python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\yasi ru\AppData\Local\Temp\pip-install-ai16fcys\pyduktape_d628ca64f5d1498c83b77edf959e9080\setup.py'"'"'; __file__='"'"'C:\Users\yasiru\AppData\Local\Temp\p ip-install-ai16fcys\pyduktape_d628ca64f5d1498c83b77edf959e9080\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) el se io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'e xec'"'"'))' bdist_wheel -d 'C:UsersyasiruAppDataLocalTemppip-wheel-gvd80r9x' cwd: C:UsersyasiruAppDataLocalTemppip-install-ai16fcyspyduktape_d628ca64f5d1498c83b77edf959e9080 Complete output (10 lines): c:usersyasiruappdatalocalprogramspythonpython37libsite-packagessetuptoolsinstaller.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprec ated. Requirements should be satisfied by a PEP 517 installer. SetuptoolsDeprecationWarning, running bdist_wheel running build running build_ext cythoning pyduktape.pyx to pyduktape.c c:usersyasiruappdatalocaltemppip-install-ai16fcyspyduktape_d628ca64f5d1498c83b77edf959e9080.eggscython-0.29.25-py3.7.eggCythonCompilerMain.py:369: Fu tureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:UsersyasiruAppDataLocalTemppip-in stall-ai16fcyspyduktape_d628ca64f5d1498c83b77edf959e9080pyduktape.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'pyduktape' extension error: Microsoft Visual C 14.0 or greater is required. Get it with "Microsoft C Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ ---------------------------------------- ERROR: Failed building wheel for pyduktape Running setup.py clean for pyduktape Failed to build dependency-injector pyduktape Installing collected packages: pyduktape, dependency-injector Running setup.py install for pyduktape ... error ERROR: Command errored out with exit status 1: command: 'c:usersyasiruappdatalocalprogramspythonpython37python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ya siru\AppData\Local\Temp\pip-install-ai16fcys\pyduktape_d628ca64f5d1498c83b77edf959e9080\setup.py'"'"'; __file__='"'"'C:\Users\yasiru\AppData\Local\Temp pip-install-ai16fcys\pyduktape_d628ca64f5d1498c83b77edf959e9080\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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'" 'exec'"'"'))' install --record 'C:UsersyasiruAppDataLocalTemppip-record-wgnhusivinstall-record.txt' --single-version-externally-managed --compile --install- headers 'c:usersyasiruappdatalocalprogramspythonpython37Includepyduktape' cwd: C:UsersyasiruAppDataLocalTemppip-install-ai16fcyspyduktape_d628ca64f5d1498c83b77edf959e9080 Complete output (10 lines): c:usersyasiruappdatalocalprogramspythonpython37libsite-packagessetuptoolsinstaller.py:30: SetuptoolsDeprecationWarning: setuptools.installer is depr ecated. Requirements should be satisfied by a PEP 517 installer. SetuptoolsDeprecationWarning, running install c:usersyasiruappdatalocalprogramspythonpython37libsite-packagessetuptoolscommandinstall.py:37: SetuptoolsDeprecationWarning: setup.py install is de precated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, running build running build_ext skipping 'pyduktape.c' Cython extension (up-to-date) building 'pyduktape' extension error: Microsoft Visual C 14.0 or greater is required. Get it with "Microsoft C Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:usersyasiruappdatalocalprogramspythonpython37python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\yasiru\AppData\Local\Temp\pip-install-ai16fcys\pyduktape_d628ca64f5d1498c83b77edf959e9080\setup.py'"'"'; __file__='"'"'C:\Use rs\yasiru\AppData\Local\Temp\pip-install-ai16fcys\pyduktape_d628ca64f5d1498c83b77edf959e9080\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__fil e__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close(); exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersyasiruAppDataLocalTemppip-record-wgnhusivinstall-record.txt' --single-version-extern ally-managed --compile --install-headers 'c:usersyasiruappdatalocalprogramspythonpython37Includepyduktape' Check the logs for full command output.''' [1]: https://visualstudio.microsoft.com/visual-cpp-build-tools/