我的requirements.txt文件如下所示:
robotframework==4.0.3
robotframework-selenium2library==3.0.0
selenium==3.141.0
robotframework-excellib==2.0.1
robotframework-csvlib==1.0.2
robotframework-extendedrequestslibrary==0.5.5
robotframework-jsonlibrary==0.3.1
robotframework-jsonvalidator==2.0.0
robotframework-requests==0.9.1
robotframework-openpyxllib==0.7
robotframework-difflibrary==0.1.0
robotframework-xvfb==1.2.2
robotframework-archivelibrary==0.4.1
robotframework-databaselibrary==1.2.4
robotframework-rabbitmq==3.0.0
pymysql
urllib3==1.26.5
RESTinstance
requests==2.25.1
robotframework-pabot当我运行pip install -r requirements.txt时,我得到了如下结果:
ERROR: Cannot install -r requirements.txt (line 12), -r requirements.txt (line 13), -r requirements.txt (line 15), -r requirements.txt (line 4), -r requirements.txt (line 6), -r requirements.txt (line 7), -r requirements.txt (line 8), -r requirements.txt (line 9) and robotframework==4.0.3 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested robotframework==4.0.3
robotframework-excellib 2.0.1 depends on robotframework>=3.0.3
robotframework-extendedrequestslibrary 0.5.5 depends on robotframework
robotframework-jsonlibrary 0.3.1 depends on robotframework>=3.0
robotframework-jsonvalidator 2.0.0 depends on robotframework>=3.0.1
robotframework-requests 0.9.1 depends on robotframework
robotframework-xvfb 1.2.2 depends on robotframework
robotframework-archivelibrary 0.4.1 depends on robotframework
robotframework-rabbitmq 3.0.0 depends on robotframework==3.0.4我认为这是最后一行的问题- rabbitmq 3.0.0不能真正与最新版本的robotframework==4.0.3一起工作。
通过设置没有版本的robotframework-rabbitmq来释放它会导致无休止的下载依赖关系,这会持续几个小时,比如:
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Downloading six-1.14.0-py2.py3-none-any.whl (10 kB)
Downloading six-1.13.0-py2.py3-none-any.whl (10 kB)
Downloading six-1.12.0-py2.py3-none-any.whl (10 kB)
Downloading six-1.11.0-py2.py3-none-any.whl (10 kB)
INFO: pip is looking at multiple versions of robotframework-pythonlibcore to determine which version is compatible with other requirements. This could take a while.
Collecting robotframework-pythonlibcore>=2.1.0
Downloading robotframework_pythonlibcore-2.2.1-py2.py3-none-any.whl (10 kB)
INFO: pip is looking at multiple versions of six to determine which version is compatible with other requirements. This could take a while.
Downloading robotframework_pythonlibcore-2.2.0-py2.py3-none-any.whl (10 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
Downloading robotframework_pythonlibcore-2.1.0-py2.py3-none-any.whl (10 kB)
INFO: pip is looking at multiple versions of robotframework-seleniumlibrary to determine which version is compatible with other requirements. This could take a while.
Collecting robotframework-seleniumlibrary>=3.0.0
Downloading robotframework_seleniumlibrary-5.1.2-py2.py3-none-any.whl (94 kB)
INFO: pip is looking at multiple versions of robotframework-pythonlibcore to determine which version is compatible with other requirements. This could take a while.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /packages/1b/a3/f712ffbad35b177af1c91e8ba58ec56a34a6dd61ce6348d779b4951482df/robotframework_seleniumlibrary-5.1.1-py2.py3-none-any.whl
Downloading robotframework_seleniumlibrary-5.1.1-py2.py3-none-any.whl (94 kB)
...(据我所知,这不是我的互联网的问题)
为什么它不能与最新的robotframework一起工作?如何解决此问题?
https://stackoverflow.com/questions/68302507
复制相似问题