[英]setup.py egg_info error code 3221225477
我一直在嘗試為ML項目安裝IMGAUG
軟件包。 但是在嘗試安裝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。 錯誤仍然存在。
PS:現在它顯示在我嘗試安裝的所有內容上。
(向下滾動至水平線可跳過說明,並根據需要直接轉到建議的解決方案)
3221225477
是0xC0000005
,它是NTSTATUS
STATUS_ACCESS_VIOLATION
; 相應的錯誤消息是The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
。
在Windows中,如果進程嘗試訪問無效的內存地址,則該進程通常會使用此退出代碼退出,並且Windows最終將其終止 。 如果安裝了Visual Studio,則可以按鏈接上的說明查明發生故障的確切模塊。
現在,此錯誤意味着某些已安裝的擴展模塊存在錯誤或彼此之間不兼容(或Python引擎本身,但是相比之下,這種可能性很小)。
修復最簡單的方法是清除所涉及模塊的安裝問題,並(如果還不夠的話)將其更新為最新版本,希望能解決導致此問題的任何原因。
特別是scipy in c:\\users\\*<username>*\\appdata\\local\\programs\\python\\python37\\lib\\site-packages
看起來很可疑:您在pip
命令中沒有使用--user
pip
時沒有注意此標志( 官方可能會導致版本沖突 ),並且您已安裝的某些軟件包已安裝到%ProgramFiles%\\Python37\\Lib\\site-packages
和%APPDATA%\\Python\\Python37\\ib\\site-packages
,在這兩個位置具有不同的版本。 我在此建議您:
%ProgramFiles%
是系統范圍的,需要提升權限來管理, %APPDATA%
是每位用戶且不需要提升權限 pip uninstall <name(s)>
帶有或不帶有--user
) -U
pip標志) 這也發生在我身上。 但是我通過卸載軟件包(pip uninstall),然后使用conda而不是pip來安裝它(conda install)來解決。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.