错误:[Errno 13]在termux上使用pip3 install matplotlib时,权限被拒绝:“ ./ configure”

问题描述

我是新手
我尝试使用pip安装matplotlib软件包,但收到此错误

python:3.9.0
点:20.2.4

import clips
from flask import Flask,render_template,request
app = Flask(__name__)

env = clips.Environment()

env.load("clips.clp")

env.reset()



@app.route('/')
def home():
   return render_template('main.html')

@app.route('/result',methods = ['POST','GET'])
def result():
    if request.method == 'POST':
        if  request.form.get('fever'):
            env.assert_string("(fever true) ")

        if request.form.get('headache'):
            env.assert_string("(headache true)")
            
        
        rule = """ (defrule matching 
                      (fever ?fever) (headache ?headache) 
                        (disease (fever ?fever) (disname ?disname1) (headache ?headache))
                        =>
                          (assert ( dis ?disname1 )) """

        env.build(rule)
       
        

    return render_template('next.html')

env.run()

if __name__ == '__main__':
   app.run(debug= True)

有没有办法解决这个问题? 我遵循了
的指示 https://wiki.termux.com/wiki/Python https://matplotlib.org/users/installing.html#installing-an-official-release 但仍然出现错误

解决方法

似乎配置文件不可执行。

简单的解决方案:cd进入配置文件所在的目录,使用命令

chmod +x configure

然后重新运行安装。

,

我通过使用此命令已解决此问题

pkg install freetype pkg-config 
cd ~/../usr/include
pkg-config --cflags freetype2
pip3 install matplotlib