setup.py egg_info错误代码3221225477 [英] setup.py egg_info error code 3221225477
问题描述
我一直在尝试为ML项目安装IMGAUG
软件包.但是当尝试安装scikit-image
I've been trying to install IMGAUG
package for an ML project. But the installation gets stuck when it tries to install scikit-image
我的输入:pip install scikit-image
输出:
Collecting imgaug
Using cached
https://files.pythonhosted.org/...
Requirement already satisfied: scipy in
c:\users\*<username>*\appdata\local\programs\python\python37\lib\site-
packages (from imgaug) (1.1.0)
Collecting scikit-image>=0.11.0 (from imgaug)
Using cached https://files.pythonhosted.org/packages/...
Complete output from command python setup.py egg_info:
----------------------------------------
Command "python setup.py egg_info" failed with error code 3221225477 in
C:\Users\<name>~1.<name2>\AppData\Local\Temp\pip-install-qmdp6ysz\scikit-image\
注意:我已经尝试安装它的其他版本,升级setuptools和pip.错误仍然存在.
Note: I've already tried installing other versions of it, upgrading setuptools and pip. Error persists.
PS:现在,它会显示在我尝试安装的所有内容中.
PS: Now it's showing up on everything I try to install.
推荐答案
(向下滚动至水平线可跳过说明,并根据需要直接转到建议的解决方案)
3221225477
是0xC0000005
这是NTSTATUS
STATUS_ACCESS_VIOLATION
;相应的错误消息是The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
.
在Windows中,如果进程尝试访问无效的内存地址,Windows会终止该地址.如果安装了Visual Studio,则可以按照链接上的说明查明发生故障的确切模块.
In Windows, a process usually quits with this exit code if it tries to access an invalid memory address and Windows terminates it as a result. If you install Visual Studio, you'll be able to pinpoint the exact module at fault as shown on the link.
现在,此错误表示某些已安装的扩展模块存在错误或不兼容(或Python引擎本身,但相比而言,这种可能性很小).
Now, this error means a bug in or an incompatibility between some of your installed extension modules (or in Python engine itself, but this is very unlikely in comparison).
最简单的修复方法是清除所涉及模块的安装问题,并(如果还不够的话)将其更新为最新版本,希望能够解决导致此问题的原因.
The easiest way to fix is to clean up any problems with the involved modules' installation and (if that isn't enough) update them to the latest versions, hoping that whatever is causing that is fixed in them.
-
尤其是
scipy in c:\users\*<username>*\appdata\local\programs\python\python37\lib\site-packages
看起来可疑:您没有使用pip命令中的"nofollow noreferrer>--user
In particular,
scipy in c:\users\*<username>*\appdata\local\programs\python\python37\lib\site-packages
looks suspicious: you aren't using--user
in yourpip
command
- which suggests that your didn't pay attention to this flag when using
pip
before (it's official that it CAN lead to version conflicts), and some of your installed packages are installed both into%ProgramFiles%\Python37\Lib\site-packages
and%APPDATA%\Python\Python37\ib\site-packages
, with different versions in these two locations.
我在此建议您:
- 确定您希望第三方模块位于何处
-
%ProgramFiles%
是系统级的,需要提升权限来管理,%APPDATA%
是每个用户的且不需要提升权限 - 除非您没有计算机的管理权限(您有,根据给出的命令判断),或者有特殊需要,否则为了简单起见,请将所有内容都保留在系统范围内
- decide where you want your 3rd-party modules to be
%ProgramFiles%
is system-wide and requires elevation to manage,%APPDATA%
is per-user and doesn't require elevation- Unless you don't have administrative rights at your machine (you do, judging by the command you gave) or have special needs, keep everything in the system-wide location for simplicity
这篇关于setup.py egg_info错误代码3221225477的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
-