pip安裝uwsg失敗解決方案

2021-10-08 18:49:14 字數 582 閱讀 4526

docker環境搭建服務,需要在docker中安裝uwsgi,安裝總是失敗

不是pip源問題

不是網路問題

搜尋各種資料,部分資料顯示安裝python-dev就可以解決,嘗試過後還是失敗

將gcc版本降級,當前gcc版本為7.4,降級為gcc-4.8,問題解決

之前的經驗,之前碰見過該問題,但是當時沒有記錄下來,一時想不起來

檢視uwsgi官方文件

這裡強調了uwsgi是乙個c語言寫的軟體,但是沒有強調gcc版本問題

on a debian-based distro an

apt-get install build-essential python-dev

will be enough.

將gcc降級到4.8版本

sudo apt install gcc-4.8

cd /usr/bin

rm gcc

ln -s gcc-4.8 gcc

gcc --version

# 確認gcc已經鏈結到gcc-4.8

pip install uwsgi

Audition CC安裝失敗解決方案

安裝遇到錯誤 出現上述錯誤,大多是因為你的系統曾經安裝過adobe系列軟體某個綠化版本 或者也可能是安裝了舊版本 的緣故。解決辦法 進入到 c program files x86 common files adobe 如果你使用32位系統,那應該是 c program files common fi...

posgreSQL安裝失敗解決方案

選擇適合自己電腦版本的postgresql進行安裝,顯示安裝失敗,錯誤資訊 problem running post install step.installation may not complete correctly the database cluster innitialisation f...

posgreSQL安裝失敗解決方案

選擇適合自己電腦版本的postgresql進行安裝,顯示安裝失敗,錯誤資訊 problem running post install step.installation may not complete correctly the database cluster innitialisation f...