Skip to content
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

Installation problem for people in China #17

Closed
mhadnanali opened this issue Sep 25, 2021 · 15 comments
Closed

Installation problem for people in China #17

mhadnanali opened this issue Sep 25, 2021 · 15 comments

Comments

@mhadnanali
Copy link

mhadnanali commented Sep 25, 2021

Installation Issue, While I already have installed dgl manually. but it looks like you have a requirements file that imposing to install the wrong version or something.
note: I am trying to install via pip mirror because I am in China. I tried both USTC and Tshinghua mirror and both ends up with the same error.

DGL latest version is 0.6.1 as per the below screenshot, while Pygcl requires 0.7 ?
I already installed the latest version as shown in error.
pip install -i https://mirrors.aliyun.com/pypi/simple/ dgl==0.7a210527

What I am doing wrong here?

image

image

@SXKDZ
Copy link
Contributor

SXKDZ commented Sep 25, 2021

Hi Ali,
Please follow this page for installing dgl since its package is provided by an external link.

@SXKDZ SXKDZ closed this as completed Sep 25, 2021
@mhadnanali
Copy link
Author

It makes no difference. Maybe if you change the requirement to dgl 0.6 it may solve the problem. as 0.6 is stable version.
image

@SXKDZ
Copy link
Contributor

SXKDZ commented Sep 25, 2021

It seems that you have already installed dgl 0.6. Therefore you need to uninstall the older version at first and try again to install the new ones.

@mhadnanali
Copy link
Author

Also, please update your documentation of PyGCL, but I don't understand how I am going to use it after installation. I am also reading the literature of GCL and am interested to work in this field. i hope I can use PyGCL for implementation. but for now, I don't understand. That is what to do next after installation. or how to run the examples. I hope I am not disturbing you.

@SXKDZ
Copy link
Contributor

SXKDZ commented Sep 25, 2021

Thanks for your advice. After you installed PyGCL, you can refer to this paper for the four contrastive components that we are concerned in this package. We have also provided a brief introduction in the README file to give a big picture of the package. We are very sorry that the doc is not ready since our dev team (consisting of only two people) is chasing some stringent deadlines for now. We endeavor to make our library more easy to use but please give us some time.

@mhadnanali
Copy link
Author

I am already this paper and I already have read your other paper "GRACE", hope to see more from you. best of luck.

@HangerYang
Copy link

I followed the instruction and download it from the external link, but it seemed the prompt still suggested that the version for DGL I had was older than 0.7. I wonder what the problem could be.

@SXKDZ
Copy link
Contributor

SXKDZ commented Dec 17, 2021

I followed the instruction and download it from the external link, but it seemed the prompt still suggested that the version for DGL I had was older than 0.7. I wonder what the problem could be.

You may try conda list | grep dgl and check whether the installed version is newer than 0.7. For a temporary solution, you can also remove this specific version requirement by checking out the repo, modifying setup.cfg, and installing locally pip install .. Currently we are refactoring the augmentation class which relies on many builtin functions provided by dgl. It is thus suggested to follow the requirement. We will review the least possible requirement of dgl in the next release. Please stay tuned and thanks for your interest on our library!

@mhadnanali
Copy link
Author

@HangerYang
I just installed it 2 days ago again. its working file.
install dgl with "pip install dgl -f https://data.dgl.ai/wheels/repo.html"

@HangerYang
Copy link

I followed the instruction and download it from the external link, but it seemed the prompt still suggested that the version for DGL I had was older than 0.7. I wonder what the problem could be.

You may try conda list | grep dgl and check whether the installed version is newer than 0.7. For a temporary solution, you can also remove this specific version requirement by checking out the repo, modifying setup.cfg, and installing locally pip install .. Currently we are refactoring the augmentation class which relies on many builtin functions provided by dgl. It is thus suggested to follow the requirement. We will review the least possible requirement of dgl in the next release. Please stay tuned and thanks for your interest on our library!

I used the cloning repo method and it worked. Thank you.

@HangerYang
Copy link

@HangerYang I just installed it 2 days ago again. its working file. install dgl with "pip install dgl -f https://data.dgl.ai/wheels/repo.html"

Thank you for your reply :)

@HoytWen
Copy link

HoytWen commented Mar 20, 2022

@HangerYang I just installed it 2 days ago again. its working file. install dgl with "pip install dgl -f https://data.dgl.ai/wheels/repo.html"

Thank you for your reply :)

Hi, I have dgl-cu111 0.7.1 installed in my device, but when I try to install PyGCL, it returns an error that says the dgl I installed does not meet the requirement. I wonder is this because PyGCL can only work with the non-cuda version of dgl?

@SXKDZ
Copy link
Contributor

SXKDZ commented Mar 20, 2022

Hello HoytWen, we will remove the specific version requirement in the setup configuration, as the newest dgl no longer hosts in PyPi, so that when pip install PyGCL, there won't be a matched version for dgl.

@SXKDZ
Copy link
Contributor

SXKDZ commented Mar 20, 2022

@HangerYang I just installed it 2 days ago again. its working file. install dgl with "pip install dgl -f https://data.dgl.ai/wheels/repo.html"

Thank you for your reply :)

Hi, I have dgl-cu111 0.7.1 installed in my device, but when I try to install PyGCL, it returns an error that says the dgl I installed does not meet the requirement. I wonder is this because PyGCL can only work with the non-cuda version of dgl?

I have just checked with the dgl team. Currently they maintain two packages of dgl, dgl for CPU support and dgl-cu*** for CUDA support. Therefore, when installing PyGCL via pip, pip will only check the dependency for dgl. We will provide a note regarding this problem in the readme.

@HoytWen
Copy link

HoytWen commented Mar 20, 2022

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants