在我的安装(Windows 7 上的 Python 3.8.1)中,如果我运行以下代码:
import pkg_resources
print([d.key for d in pkg_resources.working_set if d.key[0] == "-"])
我得到以下输出:
['-fi', '-', '-.fi', '-ffi']
这些以“-”开头的包是什么?
我在我的系统上添加了它,每次我用 command 升级包“cffi”时pip install --upgrade cffi
,我都会收到以下错误(经过一些在线研究,我猜这是由于防病毒软件,我无法禁用):
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Accesso negato: 'C:\\Users\\myuser\\AppData\\Local\\Temp\\pip-uninstall-pai0_5kc\\_cffi_backend.cp38-win_amd64.pyd'
Consider using the `--user` option or check the permissions.
但无论如何升级是成功的(我可以用 来确认pip show cffi
)。
那些包可以由此产生吗?我应该摆脱它们以及如何摆脱它们?