- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
** 需要 Microsoft Visual C++ 10.0。通过“Microsoft Windows SDK 7.1”获取:www.microsoft.com/download/details.aspx?id=8279**
我在安装 mysqlclient 或 mysql-python 时收到此错误
通过pip安装mysqlclient
我已经更新了所有内容,并且没有使用任何使用 Sublime Text 的 Visual Studio 产品,请帮助我!
最佳答案
我想测试我在评论中所说的是否属实,因此我尝试在我的 Python 2.7 之一中pip install
MySQLClient。 13 (VEnv) 安装:
e:\Work\Dev\VEnvs\py2713x64-test>Scripts\pip.exe install -v mysqlclient
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Config variable 'Py_UNICODE_SIZE' is unset, Python ABI tag may be incorrect
Collecting mysqlclient
1 location(s) to search for versions of mysqlclient:
* https://pypi.python.org/simple/mysqlclient/
Getting page https://pypi.python.org/simple/mysqlclient/
Looking up "https://pypi.python.org/simple/mysqlclient/" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.python.org
"GET /simple/mysqlclient/ HTTP/1.1" 200 2671
Updating cache with response from
"https://pypi.python.org/simple/mysqlclient/"
Caching b/c date exists and max-age > 0
Analyzing links from page https://pypi.python.org/simple/mysqlclient/
# @TODO - cfati: Truncated output
No cache entry available
"GET /packages/40/9b/0bc869f290b8f49a99b8d97927f57126a5d1befcf8bac92c60dc855f2523/mysqlclient-1.3.10.tar.gz HTTP/1.1" 200 82102
Downloading mysqlclient-1.3.10.tar.gz (82kB)
Downloading from URL https://pypi.python.org/packages/40/9b/0bc869f290b8f49a99b8d97927f57126a5d1befcf8bac92c60dc855f2523/mysqlclient-1.3.10.tar.gz#md5=e7fb95c4055e2d8a3322db5c85ab6fc8 (from https://pypi.python.org/simple/mysqlclient/)
99% |############################### | 81kB 252kB/s eta 0:00:01 Updating cache with response from "https://pypi.python.org/packages/40/9b/0bc869f290b8f49a99b8d97927f57126a5d1befcf8bac92c60dc855f2523/mysqlclient-1.3.10.tar.gz"
# @TODO - cfati: Truncated output
running build_ext
building '_mysql' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
error
Failed building wheel for mysqlclient
发生了什么:
它检查最新版本:v1.3.10(在应答时)
由于此版本仅针对 Python 3.5 和 Python 3.6 编译(064bit/032bit ):
mysqlclient-1.3.10-cp35-cp35m-win32.whl
mysqlclient-1.3.10-cp35-cp35m-win_amd64.whl
mysqlclient-1.3.10-cp36-cp36m-win32.whl
mysqlclient-1.3.10-cp36-cp36m-win_amd64.whl
它下载源存档:mysqlclient-1.3.10.tar.gz
存档包含(除了Python文件、安装文件和其他附加文件)一个文件:_mysql.c,它是用于与MySQL。正如我所说,为了使用 C 代码,必须将其编译为 .dll (_mysql.pyd)。有关构建(编译)C 代码的更多信息,请查看 [SO]: LNK2005 Error in CLR Windows Form (@CristiFati's answer)
现在,由于.dll将在导入MySQLClient时由Python加载,因此必须使用相同的编译编译器或更好的编译器:它必须使用与 Python ([Python.Wiki]: WindowsCompilers) 相同的 C 运行时库 (UCRT) )使用(其实这并不是必须的,但是在一个进程中使用多个 UCRT,在 99.99% 的情况下会导致灾难),它尝试使用 Microsoft Visual C++ 来构建它9.0(或VStudio 2008),但找不到它,因此出现错误
您的情况唯一不同的是 Microsoft Visual C++ 10.0 (或 VStudio 2010)版本,这告诉我您正在使用Python 3.3或(很可能)Python 3.4。
可能的解决方案:
从提供的链接下载Microsoft Windows SDK 7.1并安装它(然后重新运行pip install mysqlclient
命令)。这是一次性步骤,我 100% 肯定,当您必须安装 C 附带的其他第 3 方模块时,您会需要它。C 来源。
更多详情:[SO]: Visual Studio NMake build fails with: fatal error U1052: file 'win32.mak' not found (@CristiFati's answer)
下载并安装较新的 Python 版本(3.5、3.6)并运行其pip因为包已经为这些版本编译了
Google 了解其他地方,您可以在其中下载适合您的 Python 版本的模块的编译版本。尽管在安装来自不受信任来源的东西时应该小心
[SO]: Python 3.4.0 with MySQL database提到另一个包:[GitHub]: PyMySQL/PyMySQL - Pure Python MySQL Client (其他软件包也列在那里),我不确定这两个软件包有多相似,但你可以尝试一下
关于python - 需要 Microsoft Visual C++ 10.0。通过 "Microsoft Windows SDK 7.1": www. microsoft.com/download/details.aspx?id=8279 获取,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45782146/
我正在为 Google Chrome 制作一个使用 Downloads API 的扩展程序。我想从网站下载 .jpg 文件。 我已在 list 中使用了这些权限: "permissions": ["d
在函数 chrome.downloads.download 的文件名参数中使用某些字符开始下载时导致“文件名无效”错误。我在文档中找不到任何信息并替换例如:使用 %3A 或 : ;不起作用。 有问题的
我正在尝试创建一个可以一次下载多个文件的扩展程序。 为了实现这一点,我正在使用 chrome 下载 api,这是代码(使用 AngularJS): var fileDownloadProperties
我在 Android 9 中没有遇到这个问题,在 Android 10 中我选择退出 Legacy Storage。但是在 Android 11 中,我无法打开从下载管理器下载的文件。但是,可以从文件
当我尝试在我的应用程序中使用它时,Chrome 告诉我 chrome.downloads 未定义。 这是一个我尝试下载图像的简单示例... list : { "manifest_version":
我正在客户端生成一些内容,我想使用 chrome.downloads.download 下载生成的内容。请注意,下载工作正常,但不知何故下载的文件不包括新行(我使用添加新行 lineContent +
当我执行 chrome.downloads.download 时, 它下载文件并弹出底部的下载栏并显示它,我可以抑制它吗? 例子: /* some code to suppress download
我正在处理超过 100 000 行的表,并使用 DT 包(开发版本 0.1.56)在 Shiny 应用程序中将其可视化。 此外,我使用 DT 扩展作为:按钮,以下载不同格式的数据。然而,虽然 Scro
我想从我的 Google Chrome 扩展程序中完全保存一个网页。我添加了 "downloads", ""权限并确认以下代码将 Google 页面保存到 google.html . chrome
chrome.downloads.download 的默认行为是下载到默认下载文件夹。如果您更改文件夹,它不会记住它。我们可以保存下一次调用的下载位置吗? 引用文献:https://developer
我正在开发 chrome 扩展,我想为可下载文件设置下载位置。所以我正在使用 chrome.downloads.download API saveAs:true。它在 Windows 操作系统中工作正
在 Android 中使用 StorageReference.getStream() 和在 iOS 中使用 FIRStorageReference.dataWithMaxSize 完成的存储文件下载是
更新 我已经通过使用 Blob URL/Object-URL ( URL.createObjectURL(blob) )解决了这个问题(感谢 @DanielHerr ),但是我仍然很好奇为什么在使用
我正在使用 HTML、CSS 和 JS 构建一个小型网站示例项目。 我有一个按钮,点击后应该下载 PDF 示例数据(现在不需要将文档保存在哪里)。 问题:如何使用 HTML 下载 PDF 文档按钮?
我正在从 data.gov 网站下载数据,在此过程中出现以下两种类型的错误: fileUrl = 8 x64 (build 9200) 你必须切换你的 R,从 32-bit至 64-bit避免'cur
我想检查使用 Selenide download() 方法下载文件,但捕获 FileNotFoundException 和错误“拦截 1 个响应”,尽管文件已下载。 我有按钮,点击它会下载一个 zip
“下载管道工件”和“下载构建工件”之间有什么区别?应该使用哪一个?何时使用? 最佳答案 管道工件: 提供一种在管道中的阶段之间或不同管道之间共享文件的方法。它们通常是构建过程的输出,需要由另一个作业使
我们正在尝试从chrome://webrtc-internals下载日志,该方法是在接受调用后在 Electron 后台打开chrome://webrtc-internals,并在 Electron
好吧,所以我前段时间写了这个函数,它运行良好。 基本上我正在下载一个文件,然后检查 chrome://downloads/中是否有 n 个项目以及文件名是否匹配 this.checkDownload
我正在使用 Node + Express 开发一个简单的网络服务器。让我解释一下我遇到奇怪问题的部分。 使用外部脚本(dropbearkey)我生成一个 key 对,生成的私钥存储在服务器的文件系统上
我是一名优秀的程序员,十分优秀!