Reputation: 111
I combined following commands on ubuntu:
conda create -n ml python=3.9
conda activate ml
conda install jupyter pandas graphviz python-graphviz
pip install git+https://github.com/MaxHalford/vose
pip install git+https://github.com/MaxHalford/hedgehog
python -m ipykernel install --user --name=ml
jupyter notebook
But when I try to execute python code on jupyter, it already stops at importing hedgehog:
ModuleNotFoundError: No module named 'hedgehog'
When I take a look on conda list it doesn't find the module hedgehog, but the installation went withour errors. I'm not sure what can go wrong within a conda environment. All other modules can be found within conda list.
I thought about maybe permissions, so I tried it with sudo pip install:
ERROR: Package 'sorobn-0.1.0' requires a different Python: 3.8.10 not in '>=3.9,<4.0'
Which doesn't make a lot of sense to me, since I specified python 3.9 for the env and python -V confirms that I am using 3.9. So maybe that's the wrong approach. Do you have an idea?
Upvotes: 0
Views: 189
Reputation: 120391
The module hedgehog
doesn't exist because the installed module is sorobn
.
If you go to https://github.com/MaxHalford/hedgehog, you will be redirect to https://github.com/MaxHalford/sorobn
Use:
import sorobn
Upvotes: 2