在Ubuntu 16.04中安装tensorflow时导入ErrorError

时间:2018-03-21 06:07:15

标签: python-3.x python-2.7 tensorflow

我正在尝试使用以下命令安装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。请提出解决方案以摆脱此错误。

0 个答案:

没有答案