how install powerlaw python package - python

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?

Go to your command prompt and try this one;
conda install -c mlgill powerlaw

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

Related

Dlib library is not installing on Anaconda

I need to install dlib library on my Anaconda and this page in the image doesn't show any thing. Even when I use
pip install dlib
It doesn't install.
you can install via conda channels by using following command on anaconda prompt,
conda install -c conda-forge dlib=19.17
version is depends upon you #obadeji

conda environment has module installed but it does not import [duplicate]

Just installed a package through anaconda (conda install graphviz), but ipython wouldn't find it.
I can see a graphviz folder in C:\Users\username\Anaconda\pkgs
But there's nothing in: C:\Users\username\Anaconda\Lib\site-packages
The graphviz conda package is no Python package. It simply puts the graphviz files into your virtual env's Library/ directory. Look e.g. for dot.exe in the Library/bin/ directory.
To install the graphviz Python package, you can use pip:
conda install pip and pip install graphviz.
Always prefer conda packages if they are available over pip packages. Search for the package you need (conda search pkgxy) and then install it (conda install pkgxy). If it is not available, you can always build your own conda packages or you can try anaconda.org for user-built packages.
Update Nov 25, 2018: There exists now a python-graphviz package at Anaconda.org which contains the Python interface for the graphviz tool. Simply install it with conda install python-graphviz.
(Thanks to wedran and g-kaklam for posting this solution and to endolith for notifying me).
Update May 26, 2022: According to the pygraphviz website, the conda-forge channel should be used: conda install -c conda-forge pygraphviz (thanks to ian-thompson)
On conda:
First install
conda install graphviz
Then the python-library for graphviz python-graphviz
gv_python is a dynamically loaded extension for python that provides
access to the graph facilities of graphviz.
conda install python-graphviz
There is also pydot package, which can parse and dump into DOT language, used by GraphViz
conda install pydot
for me the problem was solved by installing another supportive package.
so I installed graphviz package through anaconda
then I failed to import it
after that I installed a second package named python-graphviz also through anaconda
then I succeeded in importing graphviz module into my code
I hope this will help someone :)
You can actually install both packages at the same time. For me:
conda install -c anaconda graphviz python-graphviz
did the trick.
To install graphviz,
conda install -c anaconda graphviz
pip install graphviz
If conda command not found. Follow these:
export PATH=~/anaconda/bin:$PATH
conda --version # to check your conda version
Difference between conda and pip installation,refer this stackoverflow answer
I have followed the following steps and it worked fine for me.
1 . Download and install graphviz-2.38.msi from
https://graphviz.gitlab.io/_pages/Download/Download_windows.html
2 . Set the path variable
(a) Control Panel > System and Security > System > Advanced System Settings > Environment Variables > Path > Edit
(b) add 'C:\Program Files (x86)\Graphviz2.38\bin'
Graphviz is evidently included in Anaconda so as to be used with pydot or pydot-ng (both of which are included in Anaconda). You may want to consider using one of those instead of the 'graphviz' Python module.
For ubuntu users I recommend this way:
sudo apt-get install -y graphviz libgraphviz-dev
Remeber! If you are using jupyter notebook, please restart it after the installing. That's work for me.
Because the condition before is a static variate as below:
Check if tensorflow is activated in your terminal
first deactivate it using
conda deactivate
then use the command
conda install python-graphviz
and then install
conda install graphviz
this is solution for UBUNTU USERS :) CHEERS :)
This command works officially for python:
conda install -c conda-forge python-graphviz
run this:
conda install python-graphviz
I am using anaconda for the same.
I installed graphviz using conda install graphviz in anaconda prompt.
and then installed pip install graphviz in the same command prompt. It worked for me.
I tried this way and worked for me.
conda install -c anaconda graphviz
pip install graphviz

How do I install the "sparse_dot_topn" Package in Anaconda Installer?

I am trying to install the "sparse_dot_topn" package in Alibaba Cloud ECS instance. Firstly I tried to install it through the Anaconda installer.
conda install sparse_dot_topn
It throws like there is no package available
So I tried to install via pip
Pip install spare_dot_topn
But it throws me the following error
What am I missing? Please leave your suggestions
sparse_dot_topn requires Cython, try installing it this way:
pip install cython
pip install git+https://github.com/ing-bank/sparse_dot_topn.git
I have tried it first with pip install and failed. Then I tried within Anaconda terminal with the following comment and it was succesfull.
conda install -c conda-forge sparse_dot_topn

How to install boruta in python using conda install

I'm using python 3.6 on windows 10. I want to install boruta in my python.
So I used following command conda install -c conda-forge r-boruta but got error message
PackagesNotFoundError: The following packages are not available from current channels:
I also tried conda install boruta but got the same error message. Can you suggest me installation steps
As per official documentation of anaconda https://anaconda.org/saravji/boruta if you want to install boruta using conda install use conda install -c saravji boruta or conda install -c conda-forge boruta_py and make sure that your python version is less than equal to 3.6.
Try this:
conda config --add channels conda-forge
conda install r-boruta
Source: https://github.com/conda-forge/r-boruta-feedstock

Cannot install ggplot with anaconda

I want to be able to use geom_smooth in ggplot. However, when I typed conda install ggplot, I get the error no packages found in current win-32 channels matching ggplot. Anyone know what is going on?
Have you tried looking at www.binstar.org? Type in ggplot in the search bar (I have already done so and it pops up with different options, one of which is a win32 channel. Since I have already looked at it this is what you should type into the command shell:
conda install -c https://conda.binstar.org/bokeh ggplot
I have not tested since I have win64 but this should work
UPDATE: The link above is now broken try this instead
conda install -c conda-forge ggplot
I think ggplot is simply not packaged for Anaconda as conda search ggplot doesn't find anything. How it can be easily installed via pip -- pip install ggplot.
I ran across the same issue when installing ggplot. None of the methods worked, eventually I reinstalled anaconda. Then everything works smoothly.
As of Jan 2016, ggplot now comes installed by default if you are using the Anaconda distribution so you can just use install ggplot. New to Python so this is still tripping me up.
This worked, but certain functionality was broken:
conda install -c bokeh ggplot=0.9.4
Installing from here is what finally got me what I wanted:
conda install -c conda-forge ggplot
conda install -c bokeh ggplot
https://anaconda.org/bokeh/ggplot
Also can do pip install ggplot
or sudo -H python2 pip install ggplot
Hope it helps someone although a late answer :p
Option 1
As one is using Anaconda, first of all, access the Command Prompt for the environment that one will be working on.
Then run, as per Anaconda's Documentation, use
conda install -c conda-forge r-ggplot2
Other alternatives include
conda install -c "conda-forge/label/cf201901" r-ggplot2
conda install -c "conda-forge/label/cf202003" r-ggplot2
conda install -c "conda-forge/label/gcc7" r-ggplot2
Option 2
As suggested in the official GitHub repo
# The easiest way to get ggplot2 is to install the whole tidyverse:
install.packages("tidyverse")
# Alternatively, install just ggplot2:
install.packages("ggplot2")
# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("tidyverse/ggplot2")
Notes:
For R packages Anaconda uses a special convention that uses r- before the package name, such as r-ggplot2, or r-tidyverse, and more.

Categories

Resources