在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

  1. pip install playwright是不是因为32位的机器而不能工作(然而,任何地方都没有提到它,或者我可能没有看到).
  2. 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

推荐答案

  1. You can see the actual wheel list at the "Download files" tab: https://pypi.org/project/playwright/1.25.2/#files
    There you will see that unfortunately no wheels were built for linux 32bit

  2. pytest-playwrighttry 安装编剧,但失败了,因为它找不到任何(与第一个相同的问题)

Python相关问答推荐

Python 枕头上的图像背景变黑

如何使用关键参数按列对Pandas rame进行排序

Django注释:将时差转换为小数或小数

telegram 机器人API setMyName不起作用

pyautogui.locateOnScreen在Linux上的工作方式有所不同

实现的差异取决于计算出的表达是直接返回还是首先存储在变量中然后返回

LAB中的增强数组

如何根据日期和时间将状态更新为已过期或活动?

将特定列信息移动到当前行下的新行

如何检测背景有噪的图像中的正方形

如何制作10,000年及以后的日期时间对象?

如何过滤包含2个指定子字符串的收件箱列名?

Julia CSV for Python中的等效性Pandas index_col参数

如何从.cgi网站刮一张表到rame?

将JSON对象转换为Dataframe

未知依赖项pin—1阻止conda安装""

当我try 在django中更新模型时,模型表单数据不可见

Tkinter菜单自发添加额外项目

如何杀死一个进程,我的Python可执行文件以sudo启动?

当条件满足时停止ODE集成?