Closed vbopardi closed 2 years ago
It looks like you have multiple python environments installed, some of them with access to the snorkel lib and some without. Inside of the notebook, is there a reason you can't run !pip install snorkel
to install it into whichever python environment you're using there?
PS. I'm glad to have you ask non-class related questions here! But since this isn't class-related, I'm closing the issue just so that it's not mixed in with assignment questions and potentially causing confusion. Feel free to continue the discussion in the closed issue, though.
I am working on a project in AWS Sagemaker where I am using a machine learning package called
snorkel
.I am having trouble importing the
snorkel
package when it is seemingly already installed.The error from
import snorkel
is:In the terminal, my current working directory is
/home/sagemaker-user/p-ai-spring-2022/varun
. When I runpip list
to list all the installed packages I get the following output:From here, it is clear that the
snorkel
package is installed on the system.However, when I open a Jupypter notebook, I run
where
os.getcwd()
returns/root/p-ai-spring-2022/varun
(from what I knowroot
is the same ashome/sagemaker-user
in AWS but I could be wrong about that)But running
!pip list
in the Jupyter notebook gives:Where
snorkel
is not installed.Also I noticed that running
sys.executable
gives:'/opt/conda/bin/python'
Whereas running
sys.path
gives:Maybe this has something to do with it but I'm unsure. What can I do to troubleshoot?