无法在macOS High Sierra 10.13.6上安装Polyglot

时间:2019-01-22 21:01:09

标签: python python-2.7 polyglot pyicu

我尝试通过function Car(name, engineSize) { return { name, carIdentification() { return "I am a " + name } } } 安装并出现以下错误:

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;

namespace Planificacion.UnitTest.Config
{
    public class LoggerTestConfig
    {
        private LoggerTestConfig()
        {

        }

        // https://stackoverflow.com/a/43425633/1057052
        public static ILogger<T> GetLoggerConfig<T>() where T : class
        {
            var serviceProvider = new ServiceCollection()
                .AddLogging()
                .BuildServiceProvider();

            var factory = serviceProvider.GetService<ILoggerFactory>();

            return factory.CreateLogger<T>();
        }

    }
}

尝试安装PyICU时出现完全相同的错误。请帮忙!

1 个答案:

答案 0 :(得分:0)

最后,我在这里找到了解决方法:https://github.com/ovalhub/pyicu/issues/70#issuecomment-422806676

如果仍然出现./common.h:86:10: fatal error: 'unicode/utypes.h' file not found错误,请也检查https://github.com/Homebrew/legacy-homebrew/issues/34170#issuecomment-63192387