setup.py egg_info错误代码3221225477 [英] setup.py egg_info error code 3221225477

查看:136
本文介绍了setup.py egg_info错误代码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.

推荐答案

(向下滚动至水平线可跳过说明,并根据需要直接转到建议的解决方案)

32212254770xC0000005 这是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.

  • In particular, scipy in c:\users\*<username>*\appdata\local\programs\python\python37\lib\site-packages looks suspicious: you aren't using --user in your pip command

  • 这表明您在使用pip之前没有注意此标志(
  • 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屋!

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