'how install powerlaw python package

I need to install the powerlaw package in python. if I call from the prompt, the python list turns out to be installed. Instead when I open spyder for python it doesn't recognize the package. how can I do?



Solution 1:[1]

Go to your command prompt and try this one;

 conda install -c mlgill powerlaw

Solution 2:[2]

You can for example install it via conda/mamba using the conda-forge channel as follows. The answer from Yagiz Degirmenci does not work because the conda package in the channel mlgill is only compatible with Python 3.5 and that's deprecated.

The following works:

conda install -c conda-forge powerlaw

Pip should also work:

pip install powerlaw

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Yagiz Degirmenci
Solution 2 Michaela Fricova