Skip to content
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

pip install uwsgi fails on windows #1930

Closed
Wellige opened this issue Nov 13, 2018 · 5 comments
Closed

pip install uwsgi fails on windows #1930

Wellige opened this issue Nov 13, 2018 · 5 comments

Comments

@Wellige
Copy link

Wellige commented Nov 13, 2018

If I try to install uwsgi on windows, I get an error:

    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\cygwin64\tmp\pip-install-1y21m1\uwsgi\setup.py", line 3, in <module>
        import uwsgiconfig as uc
      File "uwsgiconfig.py", line 8, in <module>
        uwsgi_os = os.uname()[0]
    AttributeError: 'module' object has no attribute 'uname'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\cygwin64\tmp\pip-install-1y21m1\uwsgi\

I found out, that the following code does not work under windows python: os.uname()
But the following code is supposed to work cross-platform: platform.uname()

I hope you can fix this issue for windows users. Thank you!

@unbit
Copy link
Owner

unbit commented Nov 13, 2018

Hi, there is no support for windows, but you can use uWSGI in the linux subsystem in windows 10.

@dinuta
Copy link

dinuta commented May 21, 2020

why is that? what if i want to burn my app inside uwsgi and create a binary for win ?
https://uwsgi-docs.readthedocs.io/en/latest/Embed.html

otherwise what should be the solution for multi-platform binaries for Flask? (pyinstaller?)

@antlancer-solutions
Copy link

Try this to skip errored package
FOR /F %k in (requirements.txt) DO pip install %k

this command will install pip requirements line by line and if there is an error on some of packages it will not freeze the rest of installations.

I have the same issue and several OS issues in many cases
There is a work around sometimes is working to skip 'errored' packages if not affect the major app
or to modify manually every pip that is not compatible which is possible but too headache depending on number of modifications needed

@jmarshall9120
Copy link

@antlancer-solutions 's solution worked for me, but I had to put it into powershell:

Get-Content ./requirements.txt | ForEach-Object -Process {pip install $_}

bittner added a commit to painless-software/painless-continuous-delivery that referenced this issue Feb 21, 2022
bittner added a commit to painless-software/painless-continuous-delivery that referenced this issue Feb 21, 2022
@zamantech
Copy link

#2085

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants