点安装-U setuptools会使Windows 10失败 [英] pip install -U setuptools fail windows 10

查看:358
本文介绍了点安装-U setuptools会使Windows 10失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在Windows 10 PC上安装了Python3.7和Pycharm. 我正在运行pip版本9.0.2

I just installed Python3.7 and Pycharm on my Windows 10 PC. I am running pip version 9.0.2

在Pycharm中,当我尝试在Pycharm中进行升级时,它说我具有28.8.0版的setuptools,我相信可以正常运行

In Pycharm, it says I have version 28.8.0 of setuptools, when I try to upgrade this in Pycharm, which I believe runs the line

pip install -U setuptools

我得到了错误:

PermissionError:[WinError 32]该进程无法访问该文件,因为它 正在被另一个进程使用: 'c:\ users \ Username \ pycharmprojects \ untitled1 \ venv \ lib \ site- 包\ setuptools-28.8.0-py3.6.egg'-> 'C:\ Users \ Username \ AppData \ Local \ Temp \ pip-i5jxitem- 卸载\用户\用户名\ pycharmprojects \ untitled1 \ venv \ lib \ site- 包\ setuptools-28.8.0-py3.6.egg'

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'c:\users\Username\pycharmprojects\untitled1\venv\lib\site- packages\setuptools-28.8.0-py3.6.egg' -> 'C:\Users\Username\AppData\Local\Temp\pip-i5jxitem- uninstall\users\Username\pycharmprojects\untitled1\venv\lib\site- packages\setuptools-28.8.0-py3.6.egg'

我尝试运行

pip install --upgrade setuptools

运行成功,并说我拥有最新版本.

which runs successfully and says I have the latest version.

有人知道我如何成功更新setuptools吗?

Does anyone know how I can successfully update setuptools?

我想要setuptools最新的原因是,这样我就可以摆脱安装其他软件包的egg_info错误.

The reason I'd like setuptools to be up to date, is so I can then get rid of the egg_info error installing other packages.

非常感谢

推荐答案

我有相同的错误.不知道为什么会这样.但是我设法通过运行来升级: pip install setuptools --upgrade --ignore-installed

I have the same error. Not sure why it happened. But I managed to upgrade by running: pip install setuptools --upgrade --ignore-installed

这篇关于点安装-U setuptools会使Windows 10失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆