debian /usr/bin/env: ‘python’: No such file or directory解决方案

src=http___www.leixue.com_uploads_2019_05_Debian.png!760&refer=http___www.leixue.jpg

看起来你没有正确安装 python 开发的头文件和静态库。使用您的包管理器在系统范围内安装它们。

对于aptUbuntu,Debian ...):

sudo apt-get install python-dev   # for python2.x installs
sudo apt-get install python3-dev  # for python3.x installs

对于yumCentOS,RHEL ...):

sudo yum install python-devel    # for python2.x installs
sudo yum install python3-devel   # for python3.x installs

对于dnfFedora ...):

sudo dnf install python2-devel  # for python2.x installs
sudo dnf install python3-devel  # for python3.x installs

对于zypperopenSUSE...):

sudo zypper in python-devel   # for python2.x installs
sudo zypper in python3-devel  # for python3.x installs

对于apk高山...):

# This is a departure from the normal Alpine naming
# scheme, which uses py2- and py3- prefixes
sudo apk add python2-dev  # for python2.x installs
sudo apk add python3-dev  # for python3.x installs

对于apt-cygCygwin ...):

apt-cyg install python-devel   # for python2.x installs
apt-cyg install python3-devel  # for python3.x installs


相关文章

发表评论 取消回复

很抱歉,您暂时无法发布评论。需要 登录 后才能发布。

IT天天自学网

IT天天自学网是一个记录生活随笔日志、分享实用技术文章的学习博客!