首页 文章

无法使用pip在虚拟环境中安装PIL

提问于
浏览
0

我正在使用OSX 10.9,我正在尝试使用pip在一个virtualenv中安装Pil . 我一直收到以下错误消息:

“无法执行usr / local / bin / gcc /:没有这样的文件或目录错误:命令'usr / local / bin / gcc /'失败,退出状态为1”

如果我在命令行中输入gcc -v,我会得到“配置: - .prefix = / Library / Developer / CommandLineTools / usr --with-gxx-include-dir = / usr / include / c /4.2.1 Apple LLVM版本5.1(clang-503.0.38)(基于LLVM 3.4svn)目标:x86_64-apple-darwin13.1.0线程模型:posix“我已经卸载了XCode 5.1并且只安装了命令行工具,因为我没有使用XCode但仍然得到我尝试安装Pil时的错误消息 . 任何帮助非常感谢

1 回答

  • 0

    注意路径差异:

    "unable to execute usr/local/bin/gcc/: No such file or directory error: command 'usr/local/bin/gcc/' failed with exit status 1" 
                       ^---missing /
    

    由于没有前导 / ,它是一个相对路径,在您运行此构建脚本的任何地方寻找 usr/local/bin 路径 .

相关问题