18👍
distutils is probably returning something like “gcc-4.2” instead of plain old “gcc”.
With sudo, etc., you probably want to do something like this:
sudo CC=gcc pip install uwsgi
- [Django]-Can't connect to local MySQL server through socket '/tmp/mysql.sock
- [Django]-How to show warnings in py.test
- [Django]-Getting model ContentType in migration – Django 1.7
- [Django]-Django: Record with max element
- [Django]-Django Admin: Using a custom widget for only one model field
- [Django]-Switching from MySQL to Cassandra – Pros/Cons?
- [Django]-Check if a OneToOne relation exists in Django
- [Django]-Django: using more than one database with inspectdb?
- [Django]-Is it okay to set instance variables in a Django class based view?
0👍
Install Xcode in your mac than select command line tool in Xcode preferences. It works for me by doing pip install uwsgi
- [Django]-Django Admin Form for Many to many relationship
- [Django]-Django app works fine, but getting a TEMPLATE_* warning message
- [Django]-How to create an object for a Django model with a many to many field?
0👍
Use pip with sudo
sometimes pip packages are not installed or python is not able to create runnable files for virtualenv just because it doesn’t have enough permissions. Since it is not showing permission error, it is taking time to resolve it. You can use following command to install it.
sudo python -m pip install uwsgi
or
sudo pip install uwsgi
- [Django]-How to upload multiple images to a blog post in django
- [Django]-Where's my JSON data in my incoming Django request?
- [Django]-Datetime.datetime.now() + 1
0👍
Note for mac’s that this could actually be because xcode requires you to accept the license agreement from the command line before it lets you run gcc
Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.
- [Django]-How do I pass a PK or slug to a DetailView using RequestFactory in Django?
- [Django]-"gettext()" vs "gettext_lazy()" in Django
- [Django]-AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'