Home » Python » python – getting error in installing requirement.txt file in django project-Exceptionshub

python – getting error in installing requirement.txt file in django project-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

ERROR: Command errored out with exit status 1:
command: ‘C:\project\python project\Django-Ecommerce-master\Django-Ecommerce-master\env\Scripts\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\Users\bats8\AppData\Local\Temp\pip-install-7l7hxs5g\cffi\setup.py'”‘”‘; file='”‘”‘C:\Users\bats8\AppData\Local\Temp\pip-install-7l7hxs5g\cffi\setup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(file);code=f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, file, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\bats8\AppData\Local\Temp\pip-install-7l7hxs5g\cffi\pip-egg-info’
cwd: C:\Users\bats8\AppData\Local\Temp\pip-install-7l7hxs5g\cffi\
Complete output (23 lines):
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\bats8\AppData\Local\Temp\pip-install-7l7hxs5g\cffi\setup.py”, line 127, in
if sys.platform == ‘win32’ and uses_msvc():
File “C:\Users\bats8\AppData\Local\Temp\pip-install-7l7hxs5g\cffi\setup.py”, line 105, in uses_msvc
return config.try_compile(‘#ifndef _MSC_VER\n#error “not MSVC”\n#endif’)
File “c:\python38\lib\distutils\command\config.py”, line 225, in try_compile
self._compile(body, headers, include_dirs, lang)
File “c:\python38\lib\distutils\command\config.py”, line 132, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
File “c:\python38\lib\distutils_msvccompiler.py”, line 360, in compile
self.initialize()
File “c:\python38\lib\distutils_msvccompiler.py”, line 253, in initialize
vc_env = _get_vc_env(plat_spec)
File “C:\project\python project\Django-Ecommerce-master\Django-Ecommerce-master\env\lib\site-packages\setuptools\msvc.py”, line 171, in msvc14_get_vc_env
return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
File “C:\project\python project\Django-Ecommerce-master\Django-Ecommerce-master\env\lib\site-packages\setuptools\msvc.py”, line 1075, in init
self.si = SystemInfo(self.ri, vc_ver)
File “C:\project\python project\Django-Ecommerce-master\Django-Ecommerce-master\env\lib\site-packages\setuptools\msvc.py”, line 547, in init
vc_ver or self._find_latest_available_vs_ver())
File “C:\project\python project\Django-Ecommerce-master\Django-Ecommerce-master\env\lib\site-packages\setuptools\msvc.py”, line 561, in _find_latest_available_vs_ver
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with “Build Tools for Visual Studio”: https://visualstudio.microsoft.com/downloads/
—————————————-
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

How to&Answers: