我在安装一个名为的依赖程序时遇到了问题。
我很难弄清楚这个错误是怎么告诉我的。
$ pip install keras-retinanet==0.5.0
Collecting keras-retinanet==0.5.0
Using cached keras-retinanet-0.5.0.tar.gz (59 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\nicol\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Nicol\\AppData\\Local\\Temp\\pip-install-v20g1wmz\\keras-retinanet\\setup.py'"'"'; __file__='"'"'C:\\Users\\Nicol\\AppData\\Local\\Temp\\pip-install-v20g1wmz\\keras-retinanet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Nicol\AppData\Local\Temp\pip-install-v20g1wmz\keras-retinanet\pip-egg-info'
cwd: C:\Users\Nicol\AppData\Local\Temp\pip-install-v20g1wmz\keras-retinanet\
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Nicol\AppData\Local\Temp\pip-install-v20g1wmz\keras-retinanet\setup.py", line 3, in <module>
import numpy as np
File "C:\Users\Nicol\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py", line 140, in <module>
from . import _distributor_init
File "C:\Users\Nicol\AppData\Roaming\Python\Python37\site-packages\numpy\_distributor_init.py", line 26, in <module>
WinDLL(os.path.abspath(filename))
File "c:\users\nicol\appdata\local\programs\python\python37\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.相关信息:
Python版本:
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]pip版本
pip-20.0.2发布于 2022-03-09 14:52:02
如果您在ubuntu20.04LTS系统中得到这个错误,那是因为我们还没有在系统中安装anaconda。安装anaconda后,它将开始工作。
cd /tmp
卷曲-O https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
bash 3-2021.11-Linux-x86_64.sh
跟着屏幕..。
注意:确保系统中安装了python和pip。
https://stackoverflow.com/questions/60245886
复制相似问题