Top.Mail.Ru
Ответы

PyPy как установить pywin32?

Пытался установить pywin32, выдало ошибку.

D:\Download>pypy -m pip install pywin32
ERROR: Could not find a version that satisfies the requirement pywin32 (from ver
sions: none)
ERROR: No matching distribution found for pywin32

Погуглил, нашел pypiwin32, но при установке тоже выдает ошибку

C:\Windows\system32>pypy -m pip install pypiwin32
Collecting pypiwin32
Using cached pypiwin32-223-py3-none-any.whl (1.7 kB)
Using cached pypiwin32-219.zip (4.8 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

├Ч python setup.py egg_info did not run successfully.
тФВ exit code: 1
тХ░тФА> [7 lines of output]
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\HOME\AppData\Local\Temp\pip-install-cupl1f0p\pypiwin32_22
fafcc1eadd4bc780247dab0c362b25\setup.py", line 121
print "Building pywin32", pywin32_version
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("B
uilding pywin32", pywin32_version)?
[end of output]

note: This error originates from a subprocess, and is likely not a problem wit
h pip.
error: metadata-generation-failed

├Ч Encountered error while generating package metadata.
тХ░тФА> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Попробовал поставить в ручную в виде пакетов .tar.gz и .whl, но нет, опять ошибка

D:\Download>pypy -m pip install pypiwin32-223.tar.gz
Processing d:\download\pypiwin32-223.tar.gz
Preparing metadata (setup.py) ... done
ERROR: Could not find a version that satisfies the requirement pywin32>=223 (fro
m pypiwin32) (from versions: none)
ERROR: No matching distribution found for pywin32>=223

Версия моего pypy
D:\Download>pypy -V
Python 3.8.15 (c20fe3f310f1d209d69a71d903dd17e5c3cf0de9, Dec 05 2022, 15:20:36)
[PyPy 7.3.10 with MSC v.1929 64 bit (AMD64)]

По дате
По Рейтингу
Аватар пользователя
Мудрец

Принципиально нужна 223 версия?! Если нет, понизь версию, pywin32 ставится только в винде и если возникают ошибки обычно понижают версию и все хорошо!