{"action":"opened","issue":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/9818","repository_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues","labels_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/9818/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/9818/comments","events_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/9818/events","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/9818","id":344482838,"node_id":"MDU6SXNzdWUzNDQ0ODI4Mzg=","number":9818,"title":"Unable to import installed libraries in Jupyternotebook","user":{"login":"suraty","id":38600508,"node_id":"MDQ6VXNlcjM4NjAwNTA4","avatar_url":"https://avatars0.githubusercontent.com/u/38600508?v=4","gravatar_id":"","url":"https://api.github.com/users/suraty","html_url":"https://github.com/suraty","followers_url":"https://api.github.com/users/suraty/followers","following_url":"https://api.github.com/users/suraty/following{/other_user}","gists_url":"https://api.github.com/users/suraty/gists{/gist_id}","starred_url":"https://api.github.com/users/suraty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suraty/subscriptions","organizations_url":"https://api.github.com/users/suraty/orgs","repos_url":"https://api.github.com/users/suraty/repos","events_url":"https://api.github.com/users/suraty/events{/privacy}","received_events_url":"https://api.github.com/users/suraty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-25T15:02:05Z","updated_at":"2018-07-25T15:02:05Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\nI installed Anaconda on windows 10, and then Tensorflow via conda environment, and then Keras via pip command.\r\nIn Anaconda Prompt, I activated the tensorflow environment,  I typed python and then I can code:\r\n`import tensorflow\r\n\r\nimport keras\r\n`\r\nAll is ok.\r\n\r\nBut when I deactivate the environment, I type python, again and then there are errors when I code:\r\n`import tensorflow\r\nimport keras\r\n\r\nError: ModuleNotFoundError\r\n`\r\n\r\nAnd the same error in the Jupyter notebook.\r\nIn the Jupyter notebook, also I tried below codes:\r\n\r\n`!conda info --env\r\n# conda environments:\r\n#\r\nbase                  *  D:\\Programs\\Anaconda3\r\ntensorflow               D:\\Programs\\Anaconda3\\envs\\tensorflow\r\n\r\nsys.path\r\n['',\r\n 'D:\\\\Programs\\\\Anaconda3\\\\python36.zip',\r\n 'D:\\\\Programs\\\\Anaconda3\\\\DLLs',\r\n 'D:\\\\Programs\\\\Anaconda3\\\\lib',\r\n 'D:\\\\Programs\\\\Anaconda3',\r\n 'D:\\\\Programs\\\\Anaconda3\\\\lib\\\\site-packages',\r\n 'D:\\\\Programs\\\\Anaconda3\\\\lib\\\\site-packages\\\\win32',\r\n 'D:\\\\Programs\\\\Anaconda3\\\\lib\\\\site-packages\\\\win32\\\\lib',\r\n 'D:\\\\Programs\\\\Anaconda3\\\\lib\\\\site-packages\\\\Pythonwin',\r\n 'D:\\\\Programs\\\\Anaconda3\\\\lib\\\\site-packages\\\\IPython\\\\extensions',\r\n 'C:\\\\Users\\\\asus\\\\.ipython']\r\n\r\nsys.executable\r\n'D:\\\\Programs\\\\Anaconda3\\\\python.exe' `\r\n\r\nI understood that the executable should be: \r\n`D:\\Programs\\Anaconda3\\envs\\tensorflow`\r\ninstead of the above. Because I installed Tensorflow and Keras in that environment.\r\n\r\nAttached images describe my problem!\r\n![image](https://user-images.githubusercontent.com/38600508/43209132-2c258022-9041-11e8-80ec-992e2f0e2513.png)\r\n![image](https://user-images.githubusercontent.com/38600508/43209211-587d20da-9041-11e8-9db0-856d3878520d.png)\r\n\r\n"}}
{"actor":{"display_login":"suraty"}}