mhammond / pywin32

Python for Windows (pywin32) Extensions
4.91k stars 783 forks source link

No matching distribution found for pywin32==306 python v 3.11.4 #2131

Closed sajeshmorje closed 9 months ago

sajeshmorje commented 9 months ago

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.

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

I am getting above error when i try to deploy webapi to azure web app. I have observed when i have installed azure-identity (pip install azure-identity), pywin32 gets added into requirements.txt (after freeze cmd). i have also tried to upgrade pywin32 as per documentation but no success. I have also tried to install pip install pypiwin32, but still its failing

can you please help or guide?

vernondcole commented 9 months ago

You have not included information about which operating system you are using. Usually, this error message occurs when installing on a Linux or other non-Windows system. You should edit your requirements.txt file to look like pywin32;sys_platform == 'win32' so that pip does not attempt to install pywin32 unless you are running on Windows.

sajeshmorje commented 9 months ago

@vernondcole thank you for reply, we are deploying FastApi in Azure Web App. I guess internally it uses docker I am able to resole this issue simply by ust removing entry from requirements.txt of pywin32 == 306