I installed snorkel using conda and when I try to run - from snorkel.labeling import labeling_function it throws the following error - ModuleNotFoundError: No module named 'snorkel.labeling'.
I tried looking up for a solution on Github, but unfortunately, I couldn't follow through. I have also tried installing nb_conda_kernels, to make all your conda environments available in jupyterbut it didn't help. Also tried creating a separate env, installing snorkel and launching jupyter notebook from the snorkel's environment, and it didn't work either. Any form of help is much appreciated!
Thanks in advance!
Try these install instructions:
conda create --yes -n snorkel
conda activate snorkel
conda install pytorch==1.1.0 -c pytorch
conda install snorkel==0.9.0 -c conda-forge
Or these, listed here:
# [OPTIONAL] Activate a virtual environment
conda create --yes -n spam python=3.6
conda activate spam
# Install requirements (both shared and tutorial-specific)
pip install environment_kernels
# We specify PyTorch here to ensure compatibility, but it may not be necessary.
conda install pytorch==1.1.0 -c pytorch
conda install snorkel==0.9.5 -c conda-forge
pip install -r spam/requirements.txt
# Launch the Jupyter notebook interface
jupyter notebook spam
Please try the following:
For pip users
pip install snorkel
For conda users
conda install snorkel -c conda-forge
Related
Pip install youtube-search-python
And than when i try :
from youtubesearchpython import *
I see an error tells me that the module not found
What is the problem
Are you using anaconda or conda ? If not you can install it here.
I would recommend to built an environment (here : myenvname) first with all the available packages you need. You will be able to install youtube-search-python with conda-forge channel.
conda create --name myenvname --channel=conda-forge youtube-search-python
conda install -n myenvname python
conda install -n myenvname scipy
conda install -n myenvname matplotlib
...
conda activate myenvname
After that you choose your myenvname for your environment with specific packages installed. Feel free to consult the conda documentation available at the same link as above.
Can anyone tell that how much time it will take to install the 'dlib' library in jupyter.
I am trying from 2 days but its not installing.
Thanks.
I have used following command to install dlib in jupyter:
pip install dlib
Open powershell in anaconda. Create an environment using
conda create -n envname
and activate the environment via
conda activate envname
Then try this:
conda install -c conda-forge dlib
I have been trying to install 'Keras' library from Anaconda on my laptop. I have the latest version of Anaconda. After that, I tried
conda update conda
conda update --all
The above two succeeds. After that I tried
conda install -c conda-forge keras
conda install keras
Both of the above fails with the below error.
ERROR conda.core.link:_execute(502): An error occurred while installing package >'::automat-0.7.0-py_1'.
CondaError: Cannot link a source that does not exist. >C:\Users\Anaconda3\Scripts\conda.exe
I downloaded "automat-0.7.0-py_1" from anaconda site into one local folder and tried conda install from there. It works. However when I try to install Keras again, that again fails. I am clueless now what to do.
I had the same issue, and I solved using:
conda update -n base conda
Or, if conda <=4.3:
conda update -n root conda
I see that other users solved with
conda config --add pinned_packages defaults::conda
and
conda clean --all --yes
But it didn't work for me.
I guess the issue is that tensorflow is not yet released for Python3.7 (you have mentioned latest version of Anaconda). To overcome this, you may create a new environment with Python3.6 and simultaneously install Keras.
conda create -n p360 python=3.6 anaconda tensorflow keras
Here p360 is the name of the environment I chose.
I have install py-xgboost from anaconda using:
conda install py-xgboost
where it is shown up when I run
conda list
conda env export
But from pip it doesnt show up:
pip freeze
Is there a way to make pip able to 'see' xg-boost that is installed from a conda package? The reason I need this is because I need speedml which has a dependency on xg-boost and speedml is only available to me from pip (the enterprise anaconda repo do not have speedml).
Thanks!!
This can actually be solved by using
--no-deps
as described in this SO question
So for example what I need is speedml but it requires xgboost then I create the conda environment, installed py-xgboostm, and run the following in same conda env.:
pip install speedml --no-dependencies
And afterwards speedml works!
What is the exact command for installation of the python iexfinance package when using the Anaconda command prompt? Using the pip commands mentioned under "install" here does not work. https://pypi.python.org/pypi/iexfinance
It seems this package is not available through anaconda distribution.
Usually, besides the conda install <package> command, you have the alternative:
conda install -c conda-forge <package>
In your case, you can create a conda environment:
conda create --name <yourenv> python=3.5
then source activate <yourenv>,
and inside this environment you install your package, like so:
pip3 install iexfinance
then proceed to install other packages with conda install <package> as you see fit.