如何在不出错的情况下通过PIP安装Twisted? [英] How do I pip install Twisted without getting an Error?

查看:24
本文介绍了如何在不出错的情况下通过PIP安装Twisted?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Pip在Windows 10上安装Twisted。我知道关于安装Twisted还有很多其他问题,但没有一个问题与我的错误相符。运行pip install Twisted时,出现以下错误:

ERROR: Command "'c:pythonpython37python.exe' -u -c 'import setuptools, 
tokenize;__file__='"'"'C:\Users\rohan\AppData\Local\Temp\pip-install-9k3t35yi\twisted\setup.py'"'"';
f=getattr(tokenize, '"'"'open'"'"', open)(__file__);
code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
install --record 'C:Users
ohanAppDataLocalTemppip-record-ec9bnx1zinstall-record.txt' 
--single-version-externally-managed --compile" failed with error code 1 in 
C:Users
ohanAppDataLocalTemppip-install-9k3t35yi	wisted

我不是专业程序员,无法解释这一点。

我已尝试安装轮子文件,但得到的结果是:

ERROR: Twisted-19.2.1-cp38-cp38m-win_amd64.whl is not a supported wheel on this platform.

我在一台64位的PC上运行64位的Python。 我做错了什么?我不用蟒蛇。我使用的是PyCharm,即使从它安装Scrapy(为什么我需要Twisted)也会出错。

有人知道我做错了什么或我应该尝试什么吗?

推荐答案

您不应该使用不稳定的Python版本的轮子。Python3.8仍在开发中,目前还没有稳定的版本。您应该使用轮式安装来安装python3.7:pip install Twisted-19.2.1-cp37-cp37m-win_amd64.whl

这篇关于如何在不出错的情况下通过PIP安装Twisted?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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