【问题标题】:Pyfasttest installation failure on Mac OS: fatal error: 'random' file not foundMac OS 上的 Pyfasttest 安装失败:致命错误:找不到“随机”文件
【发布时间】:2019-01-20 08:03:43
【问题描述】:

错误消息:
src/pyfasttext.cpp:648:10:致命错误:找不到“随机”文件
#包括 。 ^~~~~~~~。 生成 1 个警告和 1 个错误。
错误:命令“gcc”失败,退出状态为 1


已安装 gcc 和 LLVM...
UK-xxxx:vercheng$ gcc --version
配置:--prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM 版本 10.0.0 (clang-1000.10.40.1)
目标:x86_64-apple-darwin17.7.0 线程模型:posix 安装目录:/Library/Developer/CommandLineTools/usr/bin


试过这个:https://github.com/vrasneur/pyfasttext/issues/24
没有帮助

谢谢

【问题讨论】:

    标签: c++ python-3.x macos cython fasttext


    【解决方案1】:

    首先,安装 Cython 以便通过此命令安装 fasttext:

    pip install Cython --install-option="--no-cython-compile"

    现在使用这个命令安装 fasttext:

    pip install fasttext

    【讨论】:

      猜你喜欢
      • 2019-05-01
      • 1970-01-01
      • 2020-07-08
      • 2023-04-08
      • 2022-06-29
      • 1970-01-01
      • 1970-01-01
      • 2019-12-28
      • 2013-02-28
      相关资源
      最近更新 更多