Python 3.7.0 (Windows 10) 上的 PycURL 安装 [英] PycURL installation on Python 3.7.0 (Windows 10)

查看:91
本文介绍了Python 3.7.0 (Windows 10) 上的 PycURL 安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在以下环境中安装 PycURL 时遇到问题

I'm having a problem to install PycURL on the following environment

环境

Python 3.7.0
Windows 10 

问题

C:\>pip install pycurl
Collecting pycurl
  Using cached https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz
    Complete output from command python setup.py egg_info:
    Please specify --curl-dir=/path/to/built/libcurl

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 10 in C:\Users\user01\AppData\Local\Temp\pip-install-xrandomx\pycurl\

C:\>

根据官网... http://pycurl.io/docs/latest/install.html#official-packages

目前官方的 PycURL 包是针对以下内容构建的Python 版本:

Currently official PycURL packages are built against the following Python versions:

2.7.10
3.2.5
3.3.5
3.4.3
3.5.2
3.6.0

这是否意味着我必须卸载当前的 Python 3.7.0 并安装 3.6.0 才能使其正常工作?

Does it mean I have to uninstall current Python 3.7.0 and install 3.6.0 to make it works?

还有其他选择吗?

推荐答案

您有两个主要选择:

  • 手动为 Python 3.7 编译 pycurl(挖掘的起点是这里)
  • 使用 pycurl 的非官方二进制文件

后者要容易得多.

最著名的带有非官方二进制文件的网站是这个.从 whl 文件>这里.使用 pip 安装下载的文件:

Most famous site with unofficial binaries is this one. Download whl file of pycurl matching your python version and python architecture from here. Install downloaded file with pip:

pip install C:/path/to/downloaded/file/pycurl‑7.43.1‑cp37‑cp37m‑win_amd64.whl

这篇关于Python 3.7.0 (Windows 10) 上的 PycURL 安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆