1. 程式人生 > >ubuntu安裝uwsgi遇到的問題解決方案

ubuntu安裝uwsgi遇到的問題解決方案

uwsgi安裝

ubuntu安裝uwsgi遇到的問題

Command "/root/myenv/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-7cr2or3v/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-omoei_c8-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/myenv/include/site/python3.4/uwsgi"
failed with error code 1 in /tmp/pip-build-7cr2or3v/uwsgi (myenv)[email protected]:~#

上面的問題不知道原因,也沒有給我太多錯誤提示。

python-dev已經安裝。

索性直接安裝原始碼。

*** uWSGI compiling embedded plugins ***
[x86_64-linux-gnu-gcc -pthread] plugins/python/python_plugin.o
In file included from plugins/python/python_plugin.c
:1:0: plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory #include <Python.h> ^

這回算是知道問題在哪裡了,Python.h

find /usr -name Pythond.h

只在Python2.7下面找到這個。

頓悟

apt-get install python3-dev

以上所有操作均在virtualenv下面完成。

相關推薦

ubuntu安裝uwsgi遇到的問題解決方案

uwsgi安裝 ubuntu安裝uwsgi遇到的問題 Command "/root/myenv/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-7cr2or3v/u

Git服務器安裝詳解及安裝遇到問題解決方案【轉】

bsp erb 倉庫 .... gnu libcurl 執行 body ebs 轉自:http://www.cnblogs.com/grimm/p/5368777.html git是一個不錯的版本管理的工具。現在自己在搞一個簡單的應用程序開發,想使用git來進行管理。

Ubuntu常見問題及解決方案

簡單的 com das == 終端 隨筆 alt+ http nbsp 萬事開頭難,都不知道從哪裏寫起,就從最簡單的開始寫好了。這篇隨筆主要羅列出在使用Ubuntu中經常會遇到的問題並附上解決辦法,根據篇幅長短再決定要不要分為數個系列。 1.  剛進去Ubuntu圖形界面,

node-sass安裝失敗的解決方案

org bin sass true 重要 安裝 最重要的 config 解決方法 這是一個老生常談的問題了,網上有很多解決方法,找一個自己覺得合適的才是最重要的...... 執行以下命令即可: npm config set sass_binary_site https:/

win10無法安裝TortoiseSVN的解決方案

如果升級到win10之後安裝TortoiseSVN提示2503錯誤,彈窗的解釋是軟體有問題,這個時候是安裝不上TortoiseSVN。 這時候其實不上軟體問題,用命令列的方式安裝就沒問題啦,找到命令列需要以管理員的身份執行才可以,否則也是安裝不上的。 然後找到你的TortoiseSVN所

MacOS 安裝MysqlDB 問題解決方案解決 IndexError: string index out of range)

pip install MySQL-python時報錯如下: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/wk/541xl0m91gj7562sn0ddpjg9k8mh7p/T/pip

win10安裝H3C模擬器解決方案

很多人在win10上安裝h3c模擬器後出現了各種問題,在此分享自己在win10上安裝h3c模擬器成功的過程。 H3C模擬器官方下載地址:http://www.h3c.com/cn/d_201410/842486_30005_0.htm 需要註冊一個h3c賬號,註冊很簡單,然後點選下載。 下

Windows10 Ubuntu雙系統完美解決方案

Windows10 Ubuntu雙系統完美解決方案 Windows10 Ubuntu雙系統完美解決方案 1. 首先安裝Windows10 2. 然後是安裝Ubuntu 這裡只記錄了安裝

Mac 安裝 matplotlib 出錯解決方案

Traceback (most recent call last): File "main.py", line 23, in <module> from inference_utils import get_suffix, calc_roi_box, crop_i

vscode外掛安裝失敗的解決方案

在vscode中點選對應外掛的install按鈕安裝,安裝失敗,軟體提示手動安裝(manually install)。 手動下載vsix安裝包,然後點選install from VSIX...,選擇vsix安裝包進行安裝,顯示Error: EACCES: permission denied, mkdir .

vscode插件安裝失敗的解決方案

sudo comm 目錄 comment 命令 six 提示 一般來說 manual 在vscode中點擊對應插件的install按鈕安裝,安裝失敗,軟件提示手動安裝(manually install)。 手動下載vsix安裝包,然後點擊install from VSIX.

Oracle 12c 安裝問題及解決方案

1. 介紹 今天在我的開發電腦上安裝Oracle12c,電腦環境是windows10家庭中文版,安裝的Oracle資料庫版本Oracle(12.1.0.2.0) - Standard Edition (SE2) Microsoft Windows x64 (64-bit),之前沒有在該電腦上安裝過Oracl

阿里雲伺服器16.04安裝Hadoop 完美解決方案

ubuntu16.04 阿里雲伺服器安裝 hadoop 一、準備 建立hadoop使用者(這個沒有必要,我就沒有弄) $ sudo useradd -m hadoop -s /bin/bash #建立hadoop使用者,並使用/bin/b

php7.0因為依賴關係安裝失敗的解決方案

由於已經達到 MaxReports 限制,沒有寫入 apport 報告。                    

LIFT: Learned Invariant Feature Points 配置安裝問題及解決方案

python 附加庫的安裝失敗 安裝 theano 按照LIFT: Learned Invariant Feature Points完整除錯記錄進行theano的下載包安裝時出現錯誤,需要的numpy和scipy的版本不對,下載失敗,因此numpy 最好1.

windows系統安裝軟體時使用者目錄含有中文時安裝失敗以及解決方案

問題描述:        windwos登入賬戶名中是含有中文時,系統會在c盤“使用者”資料夾下建立以賬戶名為名稱的資料夾。某些工具軟體儘管在安裝的時候可以選擇安裝目錄,但是有些安裝資訊不能讓使用者選擇安裝在哪裡,而是系統預設安裝到“賬戶名”目錄下,所以無論怎麼安裝軟體,均

ubuntu安裝sublime並且解決輸入中文問題

1.下載我們需要的檔案,開啟終端,輸入: git clone https://github.com/lyfeyaj/sublime-text-imfix.git2.將subl移動到/usr/bin/,並且將sublime-imfix.so移動到/opt/sublime_text/(sublime的安裝目錄)終

demo-website埠被佔安裝報錯解決方案

Flask實現了一個demo網站,它可以快速建立起一個網站。 1、首先安裝四種必備庫: pip install falsk pip install flask-httpauth pip install flask_restful pip install python-simplexm

Linux 軟體安裝常見問題解決方案

linux下安裝軟體出現的問題解決方案,持續更新中 1、Redis安裝問題 Redis版本:4.0.6 Linux版本:CentOS 7 場景:編譯Redis時 提示 /bin/sh: cc:

GHOST等精簡版系統無法安裝虛擬印表機解決方案

  由於圖方便,安裝的雨林木風的系統,安裝好後安裝dopdf6(一種轉PDF的小工具),安裝後無法使用,Adobe acrobat7.0安裝了也不行,在網上找了很久總算有了解決方案,發出來與大家共享。      無法安裝“pdffactroy”和“Adobe Acrobat”虛擬印表機的解決方法。   某些g