gpt4 book ai didi

robotsframework-selenium2library 的 Python pip 冲突

转载 作者:行者123 更新时间:2023-11-30 22:35:05 27 4
gpt4 key购买 nike

我尝试安装 robotframework-selenium2library 但出现 pkg_resources.VersionConflict 错误:

Downloading/unpacking robotframework-selenium2library
Downloading robotframework-selenium2library-1.8.0.tar.gz (118kB): 118kB downloaded
Running setup.py (path:/tmp/pip_build_root/robotframework-selenium2library/setup.py) egg_info for package robotframework-selenium2library
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/robotframework-selenium2library/setup.py", line 7, in <module>
from ez_setup import use_setuptools
File "/tmp/pip_build_root/robotframework-selenium2library/src/ez_setup.py", line 106
except pkg_resources.VersionConflict, e:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/tmp/pip_build_root/robotframework-selenium2library/setup.py", line 7, in <module>

from ez_setup import use_setuptools

File "/tmp/pip_build_root/robotframework-selenium2library/src/ez_setup.py", line 106

except pkg_resources.VersionConflict, e:

^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/robotframework-selenium2library
Storing debug log for failure in /root/.pip/pip.log

尚未安装太多软件包:

pip list
> apparmor (2.9.4)
> LibAppArmor (2.9.4)
> pip (1.5.6)
> pygobject (3.14.0)
> robotframework (3.0.2)
> robotframework-databaselibrary (1.0.1)
> selenium (3.4.3)
> setuptools (3.6)

python --version
> Python 2.7.12

有人知道如何解决这个问题吗?

最佳答案

PyPI 上的 robotsframework-selenium2library 版本 (1.8.0) 相当旧,当您尝试使用 Python 3 安装它时,仅支持 Python 2。请使用 Python 2.7 或从 GitHub 获取该框架的新代码.

关于robotsframework-selenium2library 的 Python pip 冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44672933/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com