简体   繁体   中英

Error in installing jsonlib in python using cmd

I was trying to install the jsonlib in python using pip install, but the error keeps coming

I've tried installing the Visual Studio C++ redis. 2015-2019. It did nothing.

  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

I expected to install the json

pipwin installs unofficial python package binaries for windows provided by Christoph Gohlke here

pip install pipwin
pipwin install jsonlib

This worked for python 3.x oon windows

pip install pipwin
pipwin install jsonlib-python3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM