-
Notifications
You must be signed in to change notification settings - Fork 695
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
Ubuntu 16.04 use 'pip install uwsgi' failed #1770
Comments
If you use conda you should probably install uwsgi from conda itself. Or use the same compiler that your conda python has been built with. |
Same problem. No solution. No chance to install uwsgi in a venv. |
I found the decision on a Japanese site.
There is a link to default gcc compiler To see this link:
Change this link to the installed compiler:
Install an version of uwsgi:
You can also return previous link:
|
Same issue here. Once I changed to system's vanilla python everything works. |
Same here. Does not work in Virtual Env. Why is the thread closed?? |
Thanks for the comments on this issue. It saved me lots of time. But I'm a little confused... I'm on Ubuntu 18.04, using Python 3.7.4, NGINX 1.14, and hopefully uWSGI 2.0.18... but reading this it seems uWSGI is not compatible with |
@nicorellius I'm having a similar issue when trying to install uwsgi 2.0.18 within a pyenv virtualenv (python3.6.3). I'm on Ubuntu 18.0.4 as well. Did you find any resolution except for manually rolling back the gcc ? |
@recursiveElk I went ahead and performed the work around on Ubuntu for development but now I'm actually looking at Dockerizing the whole project. In this case, I'm using Alpine images. So far this is working without any issues. |
Interesting, I tried to install the work around but had issue installing 4.7. I checked my versions and i was pointing to gcc7 after upgrading to Ubuntu 18.04 but it was gcc5 before. Rolling back to gcc5 does not solve the issue which is strange given it works on the other identical server which is still on xenial. Edit: Can confirm that gcc4.7 is not available on Ubuntu 18.04 I managed to confirm in my build process though that Edit2: Got it working on 18.04 by switching to a python 3.7 virtualenv where uwsgi actually installs correctly under. (using gcc5) |
@recursiveElk I think the main difference is that I was using gcc 4.8 to begin with. I think I went looking for 4.7 but realized that 4.8 was the minimum I could use for this case. Thanks for sharing your experience using gcc 5. I'll have to go try this. |
I had a Clang error issue /config-3.5m/libpython3.5m.a while installing uwsgi==2.0.18 + django2.2 + python3.7 + virtualenv . I resolved the issue by taking following steps:
|
@sujit22993 How did you update to gcc9? Its saying gcc5 is the latest version. Is it development version? |
Same problem I'm on Ubuntu 20.04 python3.6 uWSGI==2.0.14 |
I couldn't get this to build, with or without a virtualenv. Then I checked my version of |
This is what solved my problem.
|
The issue can be solved by using a Python that is compiled with
The above command is for See also an article on their wiki. |
I am also experiencing this issue on Ubuntu 18.04. The default gcc is gcc-7. I installed gcc-4.8 and set it as the default gcc command: apt-get update && apt-get install gcc-4.8 && rm /usr/bin/gcc && ln -s /usr/bin/gcc-4.8 /usr/bin/gcc After that, I can install uwsgi using pip without errors. |
Are you using anaconda?
…On Wed, 1 Jul 2020 at 7:23 PM, jdhao ***@***.***> wrote:
I am also experiencing this issue on Ubuntu 18.04. The default gcc is
gcc-7. I installed gcc-4.8 and set it as the default gcc command:
apt-get update && apt-get install gcc-4.8 && rm /usr/bin/gcc && ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
After that, I can install uwsgi using pip without errors.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1770 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD7QW5GQRQB6FCY4YDDD52TRZM5V3ANCNFSM4EYM5PMQ>
.
|
@laxmimerit yes, I am using python from Anaconda. The python version is 3.7.7. |
That's the problem. No body is gonna tell you the real problem. You will be
just running here and there. Uninstall Anaconda and then see the magic. You
won't tire of thanking me.
…On Wed, 1 Jul 2020 at 7:38 PM, jdhao ***@***.***> wrote:
@laxmimerit <https://github.com/laxmimerit> yes, I am using python from
Anaconda. The python version is 3.7.7.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1770 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD7QW5DOAYVSZ7ORCLGMRMDRZM7MTANCNFSM4EYM5PMQ>
.
|
Only solution that worked for me with venv on ubuntu 18.04 and Python 3.7.7 |
As rightly quoted by many its gcc version issue. Both the options works:
system: ubuntu 18 |
another solution from official uwsgi doc with gcc 8.4.0 and python 3.8.5 apt-get install build-essential python3 |
For me the following worked:
Using the docker image |
I was trying to install on WSL Ubuntu 18.4 using pip install but got the same error for Python=3.8 in conda env
This worked for me No issue in installation. |
Your a life saver, worked for my environment: ubuntu 18.04 venv. Thanks a lot |
Only solution worked for me too |
Ubuntu 16.04
anaconda5.1 ,
python3.5.
I try others like
apt-get install python-dev
orpip install https://projects.unbit.it/downloads/uwsgi-lts.tar.gz
It's useless for me. Please help me to install uwsgi.
The text was updated successfully, but these errors were encountered: