尝试将Spyder安装到新环境后,我在(Ana)conda上遇到了大麻烦!
我使用var containerBuilder = new ContainerBuilder();
// Here's where I register all my services
containerBuilder.RegisterModule(new ApplicationModule());
var container = containerBuilder.Build();
using (var scope = container.BeginLifetimeScope())
{
var server = scope.Resolve<TcpServer>();
var isService = args.Contains("--winservice");
// Construct the HTTP API
var builder = WebHost
.CreateDefaultBuilder(args.Where(arg => arg != "--winservice").ToArray())
.ConfigureServices(collection =>
{
// Not sure what to do here?
// I can call `collection.AddAutofac` here, not sure what that does
})
.UseStartup<ApplicationAPI>();
// Start the HTTP API
if (isService)
{
// Run as a Win Service
builder.Build().RunAsCustomService(server);
}
else
{
await server.Start();
// Do not run as a Win Service
builder.Build().Run();
}
}
创建了一个新环境,但是当我尝试将Spyder安装到该环境时,Anaconda挂起了。
根据How to run Spyder with Python 3.7 with Anaconda,现在应该可以实现。
关闭Anaconda后,发生以下问题:
如果我尝试使用Anaconda Prompt更新或安装软件包,则会出现以下错误:
conda create -n py37 -c anaconda python=3.7
如果我尝试运行ModuleNotFoundError: No module named '_bz2'
,则会得到:
conda info --envs
对我来说,似乎某些依赖完全被搞砸了!
我正在使用Windows7。