如何修复安装dotenv和uvloop时的错误



我正试图在python中使用pip安装一些模块,特别是dotenv,但我收到了一个错误

我已经尝试更新pip版本和更新setuptool,但问题仍然存在。

我尝试使用pip安装dotenv,它显示了几分钟的安装消息,之后它显示了错误,而不是安装它

error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [67 lines of output] 
Traceback (most recent call last):
File "C:usersrajjappdatalocalprogramspythonpython38-32libsite-packagessetuptoolsinstaller.py", line 82, in fetch_build_egg
subprocess.check_call(cmd)
File "C:usersrajjappdatalocalprogramspythonpython38-32libsubprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\users\rajj\appdata\local\programs\python\python38-32\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\Users\Public\Documents\Wondershare\CreatorTemp\tmpz17tfqwd', '--quiet', 'distribute']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception: 

如何安装dotenv?通常人们会忘记正确的包是python dotenv而不是dotenv:

pip install python-dotenv

以下是其他同病相怜的朋友:(

最新更新