相关疑难解决方法(0)

安装python时在$ PATH中找不到可接受的C编译器

我正在尝试在我的共享主机上安装新的python环境.我按照这篇文章中的步骤进行操作:

mkdir ~/src
wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz
tar -zxvf Python-2.7.1.tar.gz
cd Python-2.7.1
mkdir ~/.localpython
./configure --prefix=/home/<user>/.localpython
make
make install
Run Code Online (Sandbox Code Playgroud)

在进入"./configure --prefix =/home // .localpython"命令后,我得到以下输出:

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux3
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home3/mikos89/Python-2.7.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details. …
Run Code Online (Sandbox Code Playgroud)

python compiler-errors virtualenv

201
推荐指数
11
解决办法
37万
查看次数

标签 统计

compiler-errors ×1

python ×1

virtualenv ×1