在Windows 10,Python 3.8.0上安装Twisted时出错

德米特里·李辛

无法pip install Twisted [windows_platform]在具有Python 3.8.0的Windows 10上安装Twisted with 错误:

ERROR: Command errored out with exit status 1:
     command: 'c:\users\darkfox\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\darkfox\\AppData\\Local\\Temp\\pip-install-m3igdq78\\Twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\darkfox\\AppData\\Local\\Temp\\pip-install-m3igdq78\\Twisted\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\darkfox\AppData\Local\Temp\pip-install-m3igdq78\Twisted\pip-egg-info'
         cwd: C:\Users\darkfox\AppData\Local\Temp\pip-install-m3igdq78\Twisted\
    Complete output (83 lines):
    Traceback (most recent call last):
      File "c:\users\darkfox\appdata\local\programs\python\python38\lib\urllib\request.py", line 1317, in do_open
        h.request(req.get_method(), req.selector, req.data, headers,
      File "c:\users\darkfox\appdata\local\programs\python\python38\lib\http\client.py", line 1230, in request
        self._send_request(method, url, body, headers, encode_chunked)

   //delete fragment

      File "c:\users\darkfox\appdata\local\programs\python\python38\lib\ssl.py", line 1309, in do_handshake
        self._sslobj.do_handshake()
    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "c:\users\darkfox\appdata\local\programs\python\python38\lib\site-packages\setuptools\package_index.py", line 766, in open_url
        return open_with_auth(url, self.opener)

      //delete fragment

        raise URLError(err)
    urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\darkfox\AppData\Local\Temp\pip-install-m3igdq78\Twisted\setup.py", line 20, in <module>
        setuptools.setup(**_setup["getSetupArgs"]())

      //delete fragment

      File "c:\users\darkfox\appdata\local\programs\python\python38\lib\site-packages\setuptools\package_index.py", line 779, in open_url
        raise DistutilsError("Download error for %s: %s"
    distutils.errors.DistutilsError: Download error for https://files.pythonhosted.org/packages/f5/1d/c98a587dc06e107115cf4a58b49de20b19222c83d75335a192052af4c4b7/incremental-17.5.0-py2.py3-none-any.whl#sha256=717e12246dddf231a349175f48d74d93e2897244939173b01974ab6661406b9f: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

这是Windows 10的全新安装,仅安装了python 3.8.0。从官方网站下载的Python。

Diptangsu Goswami

尝试下载twisted whl从文件这个链接。下载文件cp38名称中的。

下载文件后,cmd在该文件夹中打开一个并运行命令:

pip install <file.whl>

例如,如果您下载了Twisted‑19.7.0‑cp38‑cp38‑win_amd64.whl,请使用

pip install Twisted‑19.7.0‑cp38‑cp38‑win_amd64.whl

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在Windows 10上为python3安装dlib时出错

安装Bitcoinlib时出错| Python3,Windows10

在Windows 10上为Python 3.7安装PyInstaller时出错

在Windows 10上安装Rails时出错

在Windows 8上通过wubi安装Ubuntu时出错

在WampServer 2.4 Windows 8上安装Joomla 3.2.3时出错

在Windows 10上安装Tizen Studio时出错

在Windows 10 Anaconda上安装Apache-Airflow时出错

尝试在Windows 10上安装iTunes时出错

尝试在 Windows 10 上使用 pip 安装 opencv-python 时出错

无法在Windows 8上安装Python 2.7.8

在 Windows 10 中安装 Anaconda 3 python 3.6 版本

在Windows上为python 2.7安装tweepy时出错

在Windows的Python 3.5上安装Django通道时出错

在Windows 10上使用python 3运行cassandra cqlsh

如何使 python 3 脚本从 Windows 10 上的 .bat 文件执行?

Windows10上的virtualenv给出错误:路径python3不存在

TensorFlow for Python 3在Ubuntu上安装时抛出错误

尝试在Python 3上安装pygame时出错

在macOS上为Python3安装NumPy时出错

如何:在XAMPP(Windows 7/8/10)上安装Memcache

无法使用Java 8在Windows 10上安装Elasticsearch 5.1.1

无法在Windows 10中安装JDK 8

如何从ISO文件安装Windows 8/10?

导入matplotlib.pyplot时出错(在Windows 10 Home 64位PC的Anaconda3上)

如何在Windows 10的Python3上安装lmfit软件包

在Windows 10上安装Graphviz以与Python 3一起使用

如何在Windows 10上安装和使用MySQLdb for Python 3?

如何在Windows 10的python3 64位上安装PyAutoGui?