Error no matching distribution found for pywin32

Note that issues in this repository are only for bugs or feature requests in the pywin32. If you need support or help using this package, please follow these instructions - support or help requests...

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account


Closed

uhavaiya opened this issue

Jul 23, 2021

· 27 comments

Comments

@uhavaiya

Note that issues in this repository are only for bugs or feature requests in the pywin32.

If you need support or help using this package, please follow these instructions — support or help requests will be closed without comment.

For all bugs, please provide the following information.

  • Expected behavior and actual behavior.

  • Steps to reproduce the problem.

  • Version of Python and pywin32

@uhavaiya
uhavaiya

changed the title
https://pypi.python.org/packages/65/83/0b14690d70bcd193a67c8b0a640129717e37a11d8e6a3e28a01e47910737/pywin32-223-cp27-cp27m-win_amd64.whl#md5=c9d2d260ef87592bb04cbc59f1ffe2d2

No matching distribution found for pywin32==301 (from -r /tmp/build_901af13b/requirements.txt (line 43))

Jul 23, 2021

@mhammond

What version of Python are you trying to use? It looks like maybe 2.7, in which case pywin32 build 228 is the latest available.

@younesh11

@mhammond i got the same error and i am using python version 3.6

@Mohamed-Salah-1

Same error and am using Python 3.9.6. Am facing this error trying to deploy my builds to heroku

elarsaks, isaacagyeiannor, VinayakU98, ShivamChoudhary17, martin81213, jorislimonier, Amiros1322, MrAlfawzan, Solo-R, lordhj, and 11 more reacted with thumbs up emoji

@fatihkabakk

Same error and am using Python 3.9.6. Am facing this error trying to deploy my builds to heroku

I don’t know much about Heroku, but their systems might be using Linux, which does not contain windows features and API. Therefore, you should either use another library or do things manually.

@jithin03

Facing the same issues on Python Venv(3.9.6).
ERROR: Could not find a version that satisfies the requirement pywin32==225 (from versions: none) ERROR: No matching distribution found for pywin32==225

@mhammond

Facing the same issues on Python Venv(3.9.6).
ERROR: Could not find a version that satisfies the requirement pywin32==225 (from versions: none

version 225 did not support Python 3.9 — you need to specify a later pywin32 version, like 301

@jithin03

@mhammond I downgraded Python to 3.7.11. Still getting the same issue
image

@mhammond

huh — turns out I was wrong — build 225 did support 3.9! Are you on Windows? If so, then I’m afraid I’ve no idea why pip is giving that error, but pypi clearly shows that exists.

@jithin03

Yeah, I could see that on PyPI. No, I am working on mac and this is a project I cloned. Is that the possible reason?. I commented out that dependency but I found that a package cytoolz that requires «pywin32>=223»

@mhammond

Yes, that is most certainly the reason.

@mhammond

Closing as there’s not much I can do here

@Vishnu9412

I m also getting same issue

@bashirsadat

I am having the same issue any solution

@mhammond

This package only exists for Windows — trying to specify it as a dependency on any other OS is going to strike this. The bug is with the package specifying this as a dependency.

@MegaJoctan

Same error and am using Python 3.9.6. Am facing this error trying to deploy my builds to heroku

Since Heroku is run on Linux machines, no way pywin32==223 or pywin32==301 could be installed and used. go to your requirements.txt file and remove them

@marcotuliosant

I’m using linux. I can’t do this download, because appear this error:

ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32

@fatihkabakk

PLEASE READ BEFORE WRITING ANY OTHER COMMENTS

PyWin32 module is ONLY available on WINDOWS!

Steps to troubleshoot missing package(s);

  • Make sure that you aren’t trying to install pywin32 on operating systems other than Windows.
  • If your operating system is windows;
    • Check if your python version is compatible with the selected pywin32 version.

If it does not seem fixable, then please search for other packages instead of asking for help on this thread.

@munisai2

i have the issue with pywin32 while deploying django project in heroku
Screenshot 2022-04-29 163249

my requirements.txt file is
Screenshot 2022-04-29 163529

@RichardVargasPilarte

I am also having that same error but I am using Django 3.2.13 and I do not know how to fix it, if I remove pywin32 from the requirements it does not work either

@mhammond

pywin32 only works on windows, so there’s nothing I can do here. I notice «pypiwin32» is listed, which is very old and release by someone else, but is probably your remaining problem.

@munisai2

pywin32 only works on windows, so there’s nothing I can do here. I notice «pypiwin32» is listed, which is very old and release by someone else, but is probably your remaining problem.

i am using windows only but it won’t work
what should I do with pypiwin32

@MegaJoctan

_> I’m using linux. I can’t do this download, because appear this error:

ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none) ERROR: No matching distribution found for pywin32_

Of course, there is no pywin32 for Linux so why do you want to install it then, if you found the pywin32 dependency mentioned on requirements.txt just remove it and you will be fine

@kirillportfolio

ok guys, do you have a solution ?

@diegozegar

If you are using a Python 3.5+ then you could add pypiwin32==223 to your requirements.txt file instead of pywin32

@brianpaden289

For anyone who also hits this, I fixed it by setting os env filters in my requirements.txt: https://peps.python.org/pep-0508/

pywin32==303; platform_system=="Windows"

@pedroteles1

Ty so much!! It worked for me.

@danielAlex92

Thank you, it worked for me too

For anyone who also hits this, I fixed it by setting os env filters in my requirements.txt: https://peps.python.org/pep-0508/

pywin32==303; platform_system=="Windows"

If you encounter problems importing or building mbed projects, please try resetting your Python environment as shown on this page.

  1. Clear the Tools->Options->VisualGDB->General->Tools->Python Directory setting:
  2. Delete the %LOCALAPPDATA%VisualGDBPython* directories.
  3. Restart Visual Studio and open the Mbed Project Wizard. When prompted to install Python, try installing the latest Python 3:This will install a version of Python that was tested with mbed scripts on our side, and it should work exactly as described in our mbed tutorials.
  4. If you still get an error while trying to clone an mbed repository, the selected mbed version might be referencing packages that are not available in the currently used Python version. If this happens, click the “Show output from failed command” link in the error message shown by VisualGDB:The log will contain output similar to the one shown below:

    Run «C:Usersvirtual.SYSPROGSAppDataLocalVisualGDBPython3python.exe «C:Usersvirtual.SYSPROGSAppDataLocalVisualGDBPython3libsitepackagesmbedmbed.py» update mbed-os-6.9.0″ in directory «c:projectstempMbedProject2mbed-os» on local computer

    —————————

    Requirement already satisfied: colorama==0.3.9 in c:usersvirtual.sysprogsappdatalocalvisualgdbpython3libsitepackages (from r c:projectstempMbedProject2mbedosrequirements.txt (line 1)) (0.3.9)

    <...>

    ERROR: Could not find a version that satisfies the requirement pywin32==224 (from versions: 225, 226, 227, 228, 300, 301, 302)

    ERROR: No matching distribution found for pywin32==224

    WARNING: You are using pip version 21.1.1; however, version 21.3.1 is available.

    You should consider upgrading via the ‘C:Usersvirtual.SYSPROGSAppDataLocalVisualGDBPython3python.exe -m pip install —upgrade pip’ command.

    —————————

    Command exited with code 1

    Take a note of the following parameters:

    1. Python executable used to run the command (in this example, C:Usersvirtual.SYSPROGSAppDataLocalVisualGDBPython3python.exe)
    2. The requirements file (in this example, c:projectstempMbedProject2mbed-osrequirements.txt)
    3. The exact package versions that failed (in this example, pywin32==224) and the available versions (in this example, 225..302)
  5. In order to make that mbed version work, you will need to adjust the requirements.txt file to reference the nearest package version provided by your Python distro. In this example, it would mean replacing the following line in requirements.txt:

    pywin32==224;platform_system==‘Windows’

    with the following one:

    pywin32==225;platform_system==‘Windows’

  6. Now you can re-run the “mbed update” command as shown in the log file, e.g.:

    cd c:projectstempMbedProject2mbedos

    C:Usersvirtual.SYSPROGSAppDataLocalVisualGDBPython3python.exe «C:Usersvirtual.SYSPROGSAppDataLocalVisualGDBPython3libsite-packagesmbedmbed.py» update mbedos6.9.0

  7. Now you can import the manually patched mbed checkout into VisualGDB by selecting the “import” mode in the wizard:

The answer may seem straightforward, but I’ve been banging my head against a wall for hours at this point.

What I’ve tried so far pip install pypiwin32:

(venv) C:UsersBeheerderPycharmProjectsPersonal-Automation-Programs>pip install pypiwin32
Collecting pypiwin32
  Using cached https://files.pythonhosted.org/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-
none-any.whl
Collecting pywin32>=223 (from pypiwin32)
  Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32) (from versions: )
No matching distribution found for pywin32>=223 (from pypiwin32)

pip install pywin32:

(venv) C:UsersBeheerderPycharmProjectsPersonal-Automation-Programs>pip install pywin32
Collecting pywin32
  Could not find a version that satisfies the requirement pywin32 (from versions: )
No matching distribution found for pywin32

Several specific versions like pip install pywin32==226:

(venv) C:UsersBeheerderPycharmProjectsPersonal-Automation-Programs>pip install pywin32==226
Collecting pywin32==226
  Could not find a version that satisfies the requirement pywin32==226 (from versions: )
No matching distribution found for pywin32==226

and pip install pypiwin32==220:

(venv) C:UsersBeheerderPycharmProjectsPersonal-Automation-Programs>pip install pypiwin32==220
Collecting pypiwin32==220
  Could not find a version that satisfies the requirement pypiwin32==220 (from versions: 219, 223)
No matching distribution found for pypiwin32==220

Even some shot-in-the-dark kind of attempts like pip install win32api:

(venv) C:UsersBeheerderPycharmProjectsPersonal-Automation-Programs>pip install win32api
Collecting win32api
  Could not find a version that satisfies the requirement win32api (from versions: )
No matching distribution found for win32api

and python -m pip install pypiwin32:

(venv) C:UsersBeheerderPycharmProjectsPersonal-Automation-Programs>python -m pip install pypiwin32
Collecting pypiwin32
  Using cached https://files.pythonhosted.org/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-
none-any.whl
Collecting pywin32>=223 (from pypiwin32)
  Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32) (from versions: )
No matching distribution found for pywin32>=223 (from pypiwin32)

I even tried many combinations of these previous commands using previous versions of pip and python to no avail. Do any of you know a possible solution?

#python #pip

Вопрос:

Я обновился до Python 3.10.0 и не могу установить несколько модулей с помощью pip . Этой проблемы не было для более старых версий.

Когда я пытаюсь pip install pypiwin32 это сделать , это выдает следующую ошибку:

 ERROR: Command errored out with exit status 1:
     command: 'C:UsersusernameAppDataLocalProgramsPythonPython310python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:UsersusernameAppDataLocalTemppip-install-d9m6kfyxpypiwin32_e35bdff1e22f442e83e718653c555e3asetup.py'"'"'; __file__='"'"'C:UsersusernameAppDataLocalTemppip-install-d9m6kfyxpypiwin32_e35bdff1e22f442e83e718653c555e3asetup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:UsersusernameAppDataLocalTemppip-pip-egg-info-c3dic37e'
         cwd: C:UsersusernameAppDataLocalTemppip-install-d9m6kfyxpypiwin32_e35bdff1e22f442e83e718653c555e3a
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:UsersusernameAppDataLocalTemppip-install-d9m6kfyxpypiwin32_e35bdff1e22f442e83e718653c555e3asetup.py", line 121
        print "Building pywin32", pywin32_version
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/2b/ca/5c086c18de8f70222787b3e824e755b68d99272531522e77bb381d4f60c8/pypiwin32-219.zip#sha256=06d478295c89dbdd4187e1ac099bb8eab93c29e298bded4e2fbc77009287fa44 (from https://pypi.org/simple/pypiwin32/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32) (from versions: none)
ERROR: No matching distribution found for pywin32>=223
 

Есть ли какой-нибудь способ решить эту проблему?
Та же ошибка возникает при попытке установки win10toast .

Любая помощь будет признательна.

Если вы хотите: я нахожусь в Windows 11, сборка 22000.194 (стабильная) Эта проблема возникала даже тогда, когда я был на Win10.

Спасибо и с уважением, Ишаан

Комментарии:

1. Попробуйте pip3 , или если это не так, то, может быть, эти модули не поддерживают версию 3.x?

2. @FaranAiki, Но это сработало на 3.9. Эта проблема возникла, когда я обновился до 3.10

3. Хмм… но print без скобок поддерживается только в 2.x (или ниже).

Ответ №1:

Последняя версия pywin32 имеет только колесо файлы на pypi, но те, подняться на Python 3.9. Вот почему вас не было никаких проблем с версиями питона <=3.9. Теперь, когда вы находитесь в 3.10, pip нет другого выбора, кроме как вернуться к версии списка и скачайте последнюю версию, которая была источником пакета.

Из вашей ошибки следует, что указанная версия написана на python2. Кое — что, что вы можете попробовать, это установить pywin32 непосредственно из исходного кода github

Однако имейте в виду , что в настоящее время python 3.10 является довольно новым, и вы, вероятно, столкнетесь с аналогичными проблемами с другими пакетами в течение некоторого времени. Если вам отчаянно не нужны функции версии 3.10, возможно, вам будет лучше просто придерживаться более ранней версии python с лучшей поддержкой.

Комментарии:

1. Итак, я решил вернуться к python 3.9. Это решило все проблемы. Я бы подумал об обновлении до 3.10 через несколько недель. Спасибо за вашу поддержку! 😊

Ответ №2:

Комментарии:

1. Спасибо. Но можете ли вы поделиться прямой ссылкой для загрузки файла? Я не могу отправить файл wheel или zip, о котором вы упомянули. Спасибо

2. github.com/mhammond/pywin32/suites/3809264273/artifacts/… Это в нижней части страницы, на которую я ссылался выше. Или просто найдите «колеса» на этой странице.

3. Спасибо. Я могу скачать его прямо сейчас!

Понравилась статья? Поделить с друзьями:
  • Error no matching distribution found for pygame
  • Error no matching distribution found for psycopg2
  • Error no matching distribution found for pil
  • Error no matching distribution found for mysqldb
  • Error no matching distribution found for mysqlclient