-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not know how to install louvain #46
Comments
Perhaps confusingly, the
I'm not sure if that is the path you followed to install the package? The error you get using Anaconda is actually an error from On another note, the |
I found in the third one I still could not install louvain in my ordinary venv virtual environment through "conda install -c vtraag louvain" and it says Solving environment: failed I am guessing this is because I am using a read-only conda environment. I will try the other two methods which I could install louvain but got some error about matplotlib. |
OK, let me know if you resolved the issue, then I will close the issue. |
I found actually in my first use of louvain with python 3.5.2, I actually also encountered the same issue with louvain as the second one with matplotlib: multiprocessing.pool.RemoteTraceback: I this this libstdc++ issue is also with louvain. Do you have any idea about this? |
See this issue for a potential solution: vtraag/leidenalg#2. Does this solve your problem? |
I still got the error messages for my anaconda virtual environment if I degrade my libgcc to 5.2.0 from 7.2.0. This error is with matplotlib:
Previously I used normal environment, the similar error is with louvain:
I feel this is complicated and do not know how to solve it |
It is a bit difficult to see what the problem is. Could you perhaps do the following? Create a new clean conda environment (named "test", assuming you don't already have such an environment)
and then after activating the new environment using
could you install the packages as follows
Does the |
I could run those lines and install louvain seeming. But I could not import louvain and could not find louvain in my conda list.
|
Hi, I installed louvain and solved the issue. I found that it should be:
rather than installing louvain-igraph |
Yes, quite right, sorry about that 👍 |
Thanks! |
What are the differences between python-louvain and louvain-igraph? |
|
Hi,
I am using scanpy which also requires louvain to be installed (https://github.com/theislab/scanpy/blob/master/docs/installation.rst). On my own laptop, I would install through anaconda and have louvain.
However, I could not install or use it on my server.
First, I previously used python 3.5.2 and installed louvain (0.6.1) through "pip install louvain --user" as well as python-igraph (0.7.1.post6). When I run the code, I got:
"../site-packages/matplotlib/path.py", line 17, in
from . import _path, rcParams
ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by
../lib/python3.6/site-packages/matplotlib/_path.cpython-36m-x86_64-linux-gnu.so)
Second, I changed to anaconda virtual environment of python version 3.6 and installed louvain 0.6.1 and python-igraph (0.7.1.post6) and (python-louvain 0.11) . I got:
"
../lib/python3.6/site-packages/matplotlib/path.py", line 17, in
from . import _path, rcParams
ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ../.conda/envs/virtual_env/lib/python3.6/site-packages/matplotlib/_path.cpython-36m-x86_64-linux-gnu.so)"
Third, I changed to venv virtual environment built from python 3.6 from anaconda 3. I could not install louvain. When I did "pip install louvain", I got:
../compiler_compat/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
Although I could install python-louvain, I got when I run my code:
../lib/python3.6/site-packages/scanpy/tools/louvain.py", line 109, in louvain
import louvain
ModuleNotFoundError: No module named 'louvain'
Do you know what might cause this and how to solve the problem that louvain could not be installed on server?
The text was updated successfully, but these errors were encountered: