尝试安装 Pyro 库时出错
Getting error while trying to install Pyro Library
每当我尝试安装 PyRO 时都会收到此错误:
ERROR: Command errored out with exit status 1:
command: 'c:\users\singh\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\singh\AppData\Local\Temp\pip-install-lxpur7nd\pyro\setup.py'"'"'; file='"'"'C:\Users\singh\AppData\Local\Temp\pip-install-lxpur7nd\pyro\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\singh\AppData\Local\Temp\pip-pip-egg-info-f9isu850'
cwd: C:\Users\singh\AppData\Local\Temp\pip-install-lxpur7nd\pyro\
Complete output (6 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\singh\AppData\Local\Temp\pip-install-lxpur7nd\pyro\setup.py", line 23
exec code in constants
^
SyntaxError: Missing parentheses in call to 'exec'
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
我正在使用 pip install
方法安装它。
python 3.9 有很多错误,我尝试为 python 安装 opencv 但无法安装。您可以执行以下任一操作:
- 使用 python 的旧版本,例如 python 3.8/7 或其他
- 等到 python 修复错误,到 12 月中旬
我在尝试安装 Python 3.7 时遇到了这个问题。根据 PyPI 页面,
https://pypi.org/project/Pyro/
Pyro 似乎不再维护了。我可以安装 Pyro4 或 Pyro5,例如
pip install pyro4
没问题。
每当我尝试安装 PyRO 时都会收到此错误:
ERROR: Command errored out with exit status 1:
command: 'c:\users\singh\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\singh\AppData\Local\Temp\pip-install-lxpur7nd\pyro\setup.py'"'"'; file='"'"'C:\Users\singh\AppData\Local\Temp\pip-install-lxpur7nd\pyro\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\singh\AppData\Local\Temp\pip-pip-egg-info-f9isu850'
cwd: C:\Users\singh\AppData\Local\Temp\pip-install-lxpur7nd\pyro\
Complete output (6 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\singh\AppData\Local\Temp\pip-install-lxpur7nd\pyro\setup.py", line 23
exec code in constants
^ SyntaxError: Missing parentheses in call to 'exec'ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
我正在使用 pip install
方法安装它。
python 3.9 有很多错误,我尝试为 python 安装 opencv 但无法安装。您可以执行以下任一操作:
- 使用 python 的旧版本,例如 python 3.8/7 或其他
- 等到 python 修复错误,到 12 月中旬
我在尝试安装 Python 3.7 时遇到了这个问题。根据 PyPI 页面,
https://pypi.org/project/Pyro/
Pyro 似乎不再维护了。我可以安装 Pyro4 或 Pyro5,例如
pip install pyro4
没问题。