3/18/2023 0 Comments Vsco keys el capitanAfter activating the venv and starting notebook, ensure that the chosen kernel is appearing as selected at the top right corner of your notebook This is done with step 1 -> ipython kernel install -user -name=.venv and step 2 -> validating if the kernel spec is available in /home//.local/share/jupyter/kernels/.venv.Basically, one needs to ensure two things. I have been facing the same issue and after trying out several of the solutions, the solution provided by Alnilam worked. '/Users/user/anaconda/envs/py2/lib/python2.7/site-packages/IPython/extensions', '/Users/user/anaconda/envs/py2/lib/python2.7/site-packages/aeosa', '/Users/user/anaconda/envs/py2/lib/python2.7/site-packages', '/Users/user/anaconda/envs/py2/lib/python2.7/lib-dynload', '/Users/user/anaconda/envs/py2/lib/python2.7/lib-old', '/Users/user/anaconda/envs/py2/lib/python2.7/lib-tk', '/Users/user/anaconda/envs/py2/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/user/anaconda/envs/py2/lib/python2.7/plat-mac', '/Users/user/anaconda/envs/py2/lib/python2.7/plat-darwin', '/Users/user/anaconda/envs/py2/lib/python2.7', '/Users/user/anaconda/envs/py2/lib/python27.zip', In addition, as requested, the output of sys.path is: ['', # packages in environment at /Users/dror/anaconda/envs/tensorflowproblem: In addition neither python -c "import tensorflow" nor ipython -c "import tensorflow" yield any kind of error.Īs requested, also the out put of $ conda list -n tensorflowproblem Note that the directory ~/anaconda/envs/tensorflowproblem/lib/python2.7/site-packages/tensorflow exists. Users/dror/anaconda/envs/tensorflowproblem/bin/jupyter Users/dror/anaconda/envs/tensorflowproblem/bin/pip The locations of pip and jupyter: $ which -a pip conda install -name tensorflowproblem jupyter to install jupyter.conda create -name tensorflowproblem python=2.7 to create an environment.I suspect it relates to the setting of ipython but I don't know how to debug and solve the issue. The problem is, that I cannot load the module from a notebook that I start using either ipython notebook or jupyter (even though I execute either from an active environment). I know it, because I can run python and then import tensorflow. I have an environment that I started using Anaconda and I successfully installed a module in it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |