尝试安装python包时显示警告



当我尝试运行!pip install tweepy时,它会显示这样的警告。

WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'c:\python39\Scripts\chardetect.exe' -> 'c:\python39\Scripts\chardetect.exe.deleteme'

我应该如何克服这个问题。请帮帮我。

由于操作系统权限不足而发生此错误

如果你在windows中工作:

以管理员身份运行命令行并键入:

py -m pip install pip-run

然后安装你的包

py -m pip install tweepy

我遇到了类似的问题:

要解决的问题:

python -m pip install -U pip --user

运行以上命令,然后重试。

最新更新