pip安装ujson报错: error:Microsoft Visual C++ 14.0 is required

在win10上pip安装ujson报错

之前一直用的是mac本,但由于疫情问题,最近不得不用win10系统来进行python开发,在使用pip安装依赖包ujson时,遇到了问题,如下:

(custom_itsm) D:\DEVELOP\items\hn_test>pip install ujson
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no
 longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip
, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting ujson
  Using cached ujson-1.35.tar.gz (192 kB)
Building wheels for collected packages: ujson
  Building wheel for ujson (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'd:\develop\virtaul\custom_itsm\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '
"'"'c:\\users\\ysss\\appdata\\local\\temp\\pip-install-taurl6\\ujson\\setup.py'"'"'; __file__='"'"'c:\\users\\ysss\\appd
ata\\local\\temp\\pip-install-taurl6\\ujson\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.re
ad().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'c:\u
sers\ysss\appdata\local\temp\pip-wheel-jzkbhc'
       cwd: c:\users\ysss\appdata\local\temp\pip-install-taurl6\ujson  Complete output (5 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'ujson' extension
  error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

问题很明显:Microsoft Visual C++ 9.0 is required。意思是缺少编译ujson的C++编译工具,本来想按照提示去http://aka.ms/vcpython27网站下载所需要的依赖,
但经过一番尝试失败了。不过经过一番搜索,最终还是找到了就解决办法:

下载whl文件直接安装(Python2和Python3适用)

下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs
找到并下载所需要的whl文件。

放到项目中,并安装:pip install xxx.whhl

原文地址:https://www.cnblogs.com/wangyingblock/p/12272497.html

时间: 2024-10-10 23:08:58

pip安装ujson报错: error:Microsoft Visual C++ 14.0 is required的相关文章

安装Scrapy报错 error: Microsoft Visual C++ 14.0 is required解决方法

[问题背景]:在Windows 10系统,pip install Scrapy,报错error: Microsoft Visual C++ 14.0 is required,还有提示Twisted需要安装. [解决方法步骤] 1.根据提示,去https://landinghub.visualstudio.com/visual-cpp-build-tools下载C++编译工具.但是,页面已经打不开,无法下载.  2.之前因需要安装uwsgi,在Windows 10 安装过MinGW,通过可以Min

pycrypto 安装 Crypto 报错 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools 下载地址 https://dl-download.csdn.net/down11/20181120/4f5229c3a501649fb11e276d87180eeb.rar?respon

python3 pip 安装Scrapy在win10 安装报错error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

问题描述 当前环境win10,python_3.6.1,64位. 在windows下,在dos中运行pip install Scrapy报错: building 'twisted.test.raiser' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/vis

Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat(转载)

Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat 刚在机器上windows环境下装上pip方便以后安装包的时候使用,谁知道第一次使用pip安装asyncio的时候就报错. 在Windows7x64下使用pip安装包的时候提示报错:Microsoft Visual C++ 9.0 is required  (Unable to find vcvarsall.bat) 环境:windo

(转)Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat

刚在机器上windows环境下装上pip方便以后安装包的时候使用,谁知道第一次使用pip安装asyncio的时候就报错. 在Windows7x64下使用pip安装包的时候提示报错:Microsoft Visual C++ 9.0 is required  (Unable to find vcvarsall.bat) 环境:windows7 x64 ,python2.7 ,VS2012 原因:windows下使用pip安装包的时候需要机器装有vs2008,VS2012还不行,如果不想装VS2008

【python】 Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat

刚在机器上windows环境下装上pip方便以后安装包的时候使用,谁知道第一次使用pip安装asyncio的时候就报错. 在Windows7x64下使用pip安装包的时候提示报错:Microsoft Visual C++ 9.0 is required  (Unable to find vcvarsall.bat) 环境:windows7 x64 ,python2.7 ,VS2012 原因:windows下使用pip安装包的时候需要机器装有vs2008,VS2012还不行,如果不想装VS2008

安装tesserocr时提示error: Microsoft Visual C++ 14.0 is required

pip install tesserocr pillow时,提示: 按照给的提示,进到微软官网,啥都没有,pip的安装报错提示是时候更新一波了~ 在网上找Microsoft Visual C++的资料,十分稀少,只能采用wheel安装编译后的压缩包.whl文件本质上是一个压缩包,里面包含了py文件以及经过编译的pyd文件,可以在不具备编译环境的情况下,进行安装.pip默认也是先下载wheel安装,没有的话在对源码进行编译(包含了C++的源码都需要编译),而需要的Microsoft Visual

Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat

注:我是安装fabric时出的这个错误 windows7,64位操作系统,安装的32位的Python,在安装fabric时报Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat,解决办法是 安装 Micorsoft Visual C++ Compiler for Python 2.7,安装完再执行pip install fabric就OK了

安装paramiko报错error: Microsoft Visual C++ 9.0 is req

解决方法:安装此包VCForPython27.msi链接:https://pan.baidu.com/s/1Gw-o9upr28_rw9e7jdrR-w 密码:sa62 然后再重新安装paramiko 原文地址:http://blog.51cto.com/yht1990/2145018

安装 error: Microsoft Visual C++ 14.0 is required 解决方案

最近写的项目需要用到Python的第三方库,比如:mmh3, pyshark等等,而直接pip install ... 会报错:error: Microsoft Visual C++ 14.0 is required,然后各种查资料,但是都没有好的解决办法,各种不顶用的方法都试过了,这里只提干货. 参考网址:Microsoft Visual C++ 14.0 is required的解决方案 这里提到为什么要装VC++ 14.0的具体原因:mmh3 安装 error: Microsoft Vis