How to install infomap module in anaconda(python3.8) on win10? - python

I need to use the InfoMap module(https://github.com/mapequation/infomap) for graph clustering, installed with pip.
1.First,I installed a windows subsystem for Linux on Win10. https://learn.microsoft.com/en-us/windows/wsl/install-win10#manual-installation-steps
2.Then installed pip and pip3 in Ubuntu.
sudo apt-get -y update
sudo apt-get install python3-pip
sudo apt-get install python-pip
3.Then installed gcc in Ubuntu.
sudo apt install gcc
4.Then installed infomap 1.3.0(https://pypi.org/project/infomap/) in Ubuntu.
pip install infomap
The infomap module was installed successfully, the path is:/home/xc1996/.local/lib/python3.8/site-packages (1.3.0)
5.My anaconda modules packages path is F:\Users\xc\anaconda3\Lib\site-packages on Win10.
Now,my anaconda(python3.8) on win10 can't find this module.
6.In order to install it on my anaconda's path,i also tried
sudo pip3 install infomap --target=/mnt/f/Users/xc/anaconda3/Lib/site-packages
Now,my anaconda(python3.8) on win10 also can't find this module,don't know which step is wrong.How to install it correctly?

You are saying that you need to use infomap module present in github.com
1]First install git in your PC.
2]go to the link *https://github.com/mapequation/infomap*
3]on the github page copy this link in code button or copy the below link
4]the link is this *https://github.com/mapequation/infomap.git*
5]copy the above link
6]open the cmd in your windows and type the below command
7]git clone *https://github.com/mapequation/infomap.git*
8]You are done

Related

infomap is an un-recognized package in my laptop

I have installed infomap on my Ubuntu using:
sudo apt-get install build-essential
But when I want to use it in python program just like:
from infomap import infomap
I get this error:
No module named infomap
do I have to import any packages before it? what is wrong?
infomap is a python pip software package. You need to install it via pip, which is a python package manager. Try pip install infomap. If it gives you an error about pip not being found, you need to install it with something like sudo apt-get install python-pip, but I think it's a part of the build-essential package you already installed.

Python 3.4.3 modules installation in linux error

I just installed the python-3.4.3 via putty. I'm very new to Linux and it's operation. I created a script for docx operation in windows and it's working great but my manager wants to host it into the server, so that everyone in my team can use that. My problem is installing the packages into the Linux. Here i uploaded the image that what I'm getting. Please let me know the correct way.
Installing on Debian and Ubuntu (Trusty Tahr and newer) for Python 3.x
Run the following commands from a terminal:
sudo apt-get install python3-pip python-dev build-essential
sudo pip install --upgrade pip
sudo apt-get update
Check your pip version :
pip --version

How can I install ipython notebook on ubuntu 17?

I tried to install ipython notebook on my OS.But there was an error.How can I solve this?
sudo apt-get install ipython-notebook
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ipython-notebook is not available, but is referred to by another packag.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ipython-notebook' has no installation candidate
Do you already have python installed? If so, try:
sudo apt-get install ipython
or if you have pip:
pip install ipython ipython-notebook
Regardless, I instead recommend installing Anaconda or Miniconda from:
https://www.continuum.io/downloads
This will help you setup virtual environments and packages.
I installed ipython via apt, and then went the pip and virtualenvwrapper route for ipython-notebook, which worked for me. The commands were:
sudo apt -y install ipython
mkvirtualenv ipynb
pip install ipython[notebook]
Alternatively:
sudo apt -y install ipython
mkvirtualenv ipynb
pip install ipython[all]
FWIW, I ran into this error when trying to run the following command on a freshly spun up Ubuntu 18 image (on AWS, ami-0ac019f4fcb7cb7e6):
sudo apt-get install ipython3
E: Package 'ipython3' has no installation candidate
Running an apt-get update solved the problem. So:
sudo apt-get update
sudo apt-get install ipython3
Interestingly, I was surprised to find that this particular distro doesn't come with Python 2.7 installed, only Python3. That's probably AWS just trying to keep things light, which I appreciate.
Hopefully this helps someone down the line.
As virtually every Linux distro, Ubuntu comes with Python 2.7 pre-installed. In order to execute your Python code, you open your terminal, cd to the directory where the script is and run python script.py

Installing pyPdf library module in kali linux to work on Pdf files

How to install pyPdf module in my kali linux ?
I tried with $sudo apt-get install python-pyPdf
getting the error as
E:unable to locate the package python-pyPdf
You are trying to install a Python package using Linux native package management system. It won't work. I believe you have Python and pip installed in Kali. Try,
pip install PyPdf
Update for Kali 2020v4 to solve that issue:
Run
sudo bash
apt-get update
apt-get upgrade
First, check if you have pip3 previously installed
pip3
If the output is command not found then:
apt-get install python3-pip
After having it installed or if you have a pip3 previously installed, run the following command.
pip3 install PyPDF3

Can't install zbar

I am trying to use the qrtools module with Python 3.4.2 on my Raspberry Pi 2, however it cannot run as I don't have the zbar module installed.
Trying
pip-3.2 install zbar
Gives the error message shown in the picture
sudo pip-3.2 install zbar
gives a similar error
Any ideas?
(I do have it installed with Python 2.7)
UPDATE: Both libzbar-dev and python3-dev are up to date. Still...
No module named 'zbar'
assuming you're using a debian derivative (like ubuntu), you need to install zbar's developement package, which contains the header file zbar.h
$ sudo apt-get install libzbar-dev
for redhat/fedora systems:
$ sudo yum install zbar-devel
and probably python's dev package too:
$ sudo apt-get install python3-dev
or you can use pip install zbar-py
https://pypi.org/project/zbar-py/
Try the following code after entering sudo mode:
yum install zbar-devel
This should work for fedora.
Bumping #herve solution
On ubuntu and on Mint
sudo apt-get install python-zbar libzbar-dev python-qrtools
pip install libzbar-cffi==0.2.1

Categories