安装Python包时出现警告提示

3

当我尝试运行 !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'

我该如何解决这个问题。请帮助我。


1
https://dev59.com/nL_qa4cB1Zd3GeqPSfDY - Animikh Aich
1
尝试在提升的终端中运行该命令。 - Foad S. Farimani
2个回答

3

这个错误是由于操作系统权限不足引起的

如果您正在使用Windows:

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

py -m pip install pip-run

然后安装您的软件包

py -m pip install tweepy

2
我遇到了类似的问题:
解决方法:
python -m pip install -U pip --user

运行上述命令,然后再试一次。

这个不起作用 - Aserian

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接