我尝试通过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时出现完全相同的错误。请帮忙!
答案 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。