使用cmd在python中安装jsonlib时出错

2024-03-29 09:39:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用pip install在python中安装jsonlib,但是错误不断出现

我尝试安装VisualStudioC++ + ReIIS。2015-2019年。 它什么也没做。在

  Using cached https://files.pythonhosted.org/packages/7c/55/19c29fd79dfb5d42f4568feedc5a286d01d0683a372c1e19024531576508/jsonlib-1.6.1.tar.gz
Building wheels for collected packages: jsonlib
  Building wheel for jsonlib (setup.py) ... error
  ERROR: Complete output from command 'c:\users\satyam porwal\appdata\local\programs\python\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\Satyam Porwal\\AppData\\Local\\Temp\\pip-install-w6n5pwbu\\jsonlib\\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\Satyam Porwal\AppData\Local\Temp\pip-wheel-l33ly_ta' --python-tag cp37:
  ERROR: running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  copying jsonlib.py -> build\lib.win-amd64-3.7
  running build_ext
  building '_jsonlib' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
  ----------------------------------------
  ERROR: Failed building wheel for jsonlib
  Running setup.py clean for jsonlib
Failed to build jsonlib
Installing collected packages: jsonlib
  Running setup.py install for jsonlib ... error

我希望安装json


Tags: installpippyhttpsbuildforpackagessetup