我想在tensorflow中安装keras,但由于权限错误而失败
执行交易:失败 错误conda.core.link:_execute(507):安装软件包时发生错误 'defaults :: numpy-base-1.15.4-py36hc3f5095_0'。 PermissionError(13,'权限被拒绝') 试图回滚。
回滚交易:完成
PermissionError(13,'权限被拒绝')
我的代码是:
conda安装keras
我是一个菜鸟,英语不好。请多多包涵。 thx〜
答案 0 :(得分:0)
权限被拒绝,可能是因为您没有以root用户身份运行命令。尝试并以超级管理员(sudo conda install keras
答案 1 :(得分:0)
TensorFlow已经包含keras。
Keras切换到 //sets the list
class Queries
{
public static List<string> query = new List<string>();
}
//will read from db what queries will be getting
class Getvalue: Queries
{
public static void getquerytorun(object source, ElapsedEventArgs e)
{
string Conn = "Data Source= LPTP2018AM00031\\SQLSERVER2016;MultipleActiveResultSets=True;Initial Catalog=Integral360;User ID=sa;Password=password";
using (SqlConnection conn = new SqlConnection(Conn))
{
try
{
conn.Open();
SqlCommand Command = new SqlCommand("Select * FROM BatchtoRun where Active = 1", conn);
using (SqlDataReader Reader = Command.ExecuteReader(CommandBehavior.CloseConnection))
{
while (Reader.Read())
{
query.Add(Reader[2].ToString());
}
}
conn.Close();
}
catch (Exception exception)
{
Console.WriteLine(exception);
}
}
}
}
//timer that checks the query every interval
class runvalue: Getvalue
{
public static void Intervals()
{
System.Timers.Timer Timer = new System.Timers.Timer();
Timer.Elapsed += new ElapsedEventHandler(getquerytorun);
Timer.Interval = 30000;
Timer.Enabled = true;
////GetBatchToRun();
}
public static void RuntheQuery()
{
try
{
foreach (object o in query)
{
Console.WriteLine(o);
}
}
catch (Exception exception)
{
Console.WriteLine(exception);
}
}
}
//run the consoleapp
class startrun: runvalue
{
static void Main(string[] args)
{
Intervals();
RuntheQuery();
Console.ReadKey();
}
}
,这是tensorflow> = 1.10.0的一部分。