在try 从pypi website上提到的pip install playwright
安装时,我收到错误
ERROR: Could not find a version that satisfies the requirement playwright (from versions: none)
ERROR: No matching distribution found for playwright
在公元installation docs年,有人提到使用pip install pytest-playwright
.在使用它之后,PIP开始下载所有可用的版本(不是最新的或只有一个),然后给出版本依赖相互冲突的错误.作为一个修复,我被要求从命令行中删除版本(我从未给出过).
我使用的是32位Linux,python3.8解释器,pycharm venv
-
pip install playwright
是不是因为32位的机器而不能工作(然而,任何地方都没有提到它,或者我可能没有看到). -
pip install pytest-playwright
美元有什么问题吗?
请帮帮忙.
壳牌pip install pytest-playwright
的输出如下所示.
pip install pytest-playwright
Collecting pytest-playwright
Using cached pytest_playwright-0.3.0-py3-none-any.whl (10 kB)
Using cached pytest_playwright-0.2.3-py3-none-any.whl (10.0 kB)
Using cached pytest_playwright-0.2.2-py3-none-any.whl (9.8 kB)
Using cached pytest_playwright-0.2.1-py3-none-any.whl (9.8 kB)
Using cached pytest_playwright-0.2.0-py3-none-any.whl (9.8 kB)
Using cached pytest_playwright-0.1.2-py3-none-any.whl (11 kB)
Using cached pytest_playwright-0.1.1-py3-none-any.whl (10 kB)
Using cached pytest_playwright-0.1.0-py3-none-any.whl (10 kB)
Using cached pytest_playwright-0.0.12-py3-none-any.whl (10 kB)
Collecting pytest
Using cached pytest-7.1.3-py3-none-any.whl (298 kB)
Collecting pytest-base-url
Using cached pytest_base_url-2.0.0-py3-none-any.whl (4.6 kB)
Collecting pytest-playwright
Using cached pytest_playwright-0.0.11-py3-none-any.whl (10 kB)
Using cached pytest_playwright-0.0.10-py3-none-any.whl (10 kB)
Using cached pytest_playwright-0.0.9-py3-none-any.whl (10 kB)
Using cached pytest_playwright-0.0.8-py3-none-any.whl (10 kB)
Using cached pytest_playwright-0.0.7-py3-none-any.whl (9.9 kB)
Using cached pytest_playwright-0.0.6-py3-none-any.whl (10 kB)
Using cached pytest_playwright-0.0.5-py3-none-any.whl (9.8 kB)
Downloading pytest_playwright-0.0.4.1-py3-none-any.whl (5.6 kB)
Downloading pytest_playwright-0.0.4-py3-none-any.whl (5.1 kB)
Downloading pytest_playwright-0.0.3-py3-none-any.whl (3.7 kB)
Downloading pytest_playwright-0.0.2-py3-none-any.whl (3.3 kB)
ERROR: Cannot install pytest-playwright==0.0.10, pytest-playwright==0.0.11, pytest-playwright==0.0.12, pytest-playwright==0.0.2, pytest-playwright==0.0.3, pytest-playwright==0.0.4, pytest-playwright==0.0.4.1, pytest-playwright==0.0.5, pytest-playwright==0.0.6, pytest-playwright==0.0.7, pytest-playwright==0.0.8, pytest-playwright==0.0.9, pytest-playwright==0.1.0, pytest-playwright==0.1.1, pytest-playwright==0.1.2, pytest-playwright==0.2.0, pytest-playwright==0.2.1, pytest-playwright==0.2.2, pytest-playwright==0.2.3 and pytest-playwright==0.3.0 because these package versions have conflicting dependencies.
The conflict is caused by:
pytest-playwright 0.3.0 depends on playwright>=1.18
pytest-playwright 0.2.3 depends on playwright>=1.13
pytest-playwright 0.2.2 depends on playwright>=1.13
pytest-playwright 0.2.1 depends on playwright>=1.13
pytest-playwright 0.2.0 depends on playwright>=1.13
pytest-playwright 0.1.2 depends on playwright>=1.10.0
pytest-playwright 0.1.1 depends on playwright>=1.10.0
pytest-playwright 0.1.0 depends on playwright>=1.10.0
pytest-playwright 0.0.12 depends on playwright>=1.9.0
pytest-playwright 0.0.11 depends on playwright==1.8.0a1
pytest-playwright 0.0.10 depends on playwright>=0.170.0
pytest-playwright 0.0.9 depends on playwright>=0.0.4
pytest-playwright 0.0.8 depends on playwright>=0.0.4
pytest-playwright 0.0.7 depends on playwright>=0.0.4
pytest-playwright 0.0.6 depends on playwright>=0.0.4
pytest-playwright 0.0.5 depends on playwright>=0.0.4
pytest-playwright 0.0.4.1 depends on playwright==0.0.4
pytest-playwright 0.0.4 depends on playwright
pytest-playwright 0.0.3 depends on playwright
pytest-playwright 0.0.2 depends on playwright
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict