Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find module from conda environment #1868

Closed
risaueno opened this issue Jan 27, 2020 · 1 comment
Closed

Unable to find module from conda environment #1868

risaueno opened this issue Jan 27, 2020 · 1 comment
Labels
documentation 📃 Documentation related

Comments

@risaueno
Copy link

Description

I've followed the documentation but have the same problem as this: https://discuss.atom.io/t/hydrogen-issues-modulenotfounderror/56583/4

I've installed ipykernel and did python -m ipykernel install --user --name myenv (solutions in existing issues #899, #501). I seem to be activating a specific conda environment with hydrogen but it’s not finding the specific modules I’ve installed on the environment when I run an import - perhaps it is still looking globally. Many thanks for any suggestions/help!

@risaueno risaueno added the documentation 📃 Documentation related label Jan 27, 2020
@aviatesk
Copy link
Member

Are you sure you select a kernel which runs in the conda environment ?
For example, I have a conda enviroment named py36 and have a C:\\...\AppData\Roaming\jupyter\kernels\py36\kernel.json file and it looks like:

{
 "argv": [
  "C:\\...\\Anaconda3\\envs\\py36\\python.exe",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "display_name": "Python 3.6",
 "language": "python"
}

And then I can select this kernel when I tried to start a Python kernel and it can import modules in the environment (this time py36)

@aviatesk aviatesk closed this as completed Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation 📃 Documentation related
Projects
None yet
Development

No branches or pull requests

2 participants