简体   繁体   English

尝试安装 python asyncio 会出错

[英]Trying to install python asyncio gives an error

Trying to install asyncio with "pip install asyncio" results in an error.尝试使用“pip install asyncio”安装 asyncio 会导致错误。

I am on python 3.8.0我在 python 3.8.0

pip install asyncio
ERROR: Command errored out with exit status 1: 'c:\python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\myname\\appdata\\local\\temp\\pip-install-lqk3hu\\asyncio\\setup.py'"'"'; __file__='"'"'c:\\users\\myname\\appdata\\local\\temp\\pip-install-lqk3hu\\asyncio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\myname\appdata\local\temp\pip-record-ntkhf1\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

asyncio is a standard library. asyncio是一个标准库。 You don't need to install it.你不需要安装它。 It comes with Python 3.8.它配备了 Python 3.8。 You should be able to use it with directly on Python.您应该可以直接在 Python 上使用它。

Also,还,

Given that you are new.鉴于你是新人。 I can see that you also need to change the environment variables.我可以看到您还需要更改环境变量。 Please check this answer: https://stackoverflow.com/a/51931468/11079758请检查这个答案: https://stackoverflow.com/a/51931468/11079758

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM