【问题标题】:Trouble with installing pycurl in Windows 10 [duplicate]在 Windows 10 中安装 pycurl 时遇到问题 [重复]
【发布时间】:2026-01-23 21:05:01
【问题描述】:

我尝试在 Windows 上使用 .msi 安装程序安装 pycurl。安装后,我尝试导入模块pycurl。这是我得到的:

Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycurl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pycurl'
>>>

【问题讨论】:

  • 你有虚拟环境吗?
  • 不,这是普通的Windows 10。你问的是这个吗?
  • 这篇文章似乎有答案:*.com/questions/33684195/…

标签: python windows pycurl


【解决方案1】:

尝试使用 pip 安装 pycurl

pip install pycurl

如果 pip 不起作用,请使用 pip3。

【讨论】: