我正在尝试使用以下命令安装tensorflow
public void onBackPressed() {
MaterialSearchView searchView = (MaterialSearchView)
findViewById(R.id.search_view);
if (searchView.isOpen()) {
// Close the search on the back button press.
searchView.closeSearch();
} else {
if(count == 0) {
count++;
FragmentManager fragmentManager=getFragmentManager();
fragmentManager.beginTransaction().replace(R.id.content_frame
, new Main2Activity()).addToBackStack("tag").commit();
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
try {
getSupportActionBar().setTitle("Welcome " +
dashboardObject.getJSONObject("studentDTO").getJSONObject("student").get("name").toString());
notifications1.setVisibility(View.INVISIBLE);
home.setVisibility(View.INVISIBLE);
search1.setVisibility(View.INVISIBLE);
setActionBarBackground(R.color.nav_home);
getSupportActionBar().getThemedContext();
toolbar.setTitleTextColor(getResources().getColor(R.color.background_color));
toolbar.setNavigationIcon(R.drawable.ic_black3);
} catch (JSONException e) {
e.printStackTrace();
}
}else {
finish();
count--;
}
}
但我面临以下错误 -
sudo -H pip3 install --upgrade tensorflow
我有两个版本的python 2.7&安装python 3.5。请提出解决方案以摆脱此错误。