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

Midway3 not able to install keras after activating cuda #20

Closed
Qiuyu-Li opened this issue Mar 8, 2022 · 3 comments
Closed

Midway3 not able to install keras after activating cuda #20

Qiuyu-Li opened this issue Mar 8, 2022 · 3 comments

Comments

@Qiuyu-Li
Copy link

Qiuyu-Li commented Mar 8, 2022

Hi,

I'm having issues with installing python packages on Midway3. This is what I did:

I followed #18 and ran:

sinteractive --account=soci40133 --partition=gpu --mem=100G --time=02:00:00 --gres=gpu:1 --cpus-per-task=4
module load python
module load cuda
source activate pytorch-gpu-1.2-cuda-10.0

Then, I ran pip install keras. And the terminal returned [ERROR 101] Network is unreachable.

I would appreciate it very much if anyone could provide any clues!

@JunsolKim
Copy link

Hi @Qiuyu-Li, an easy way to use Keras on RCC would be to use virtual environment that supports Tensorflow. Would you run source activate tf_keras in place of source activate pytorch-gpu-1.2-cuda-10.0 and try to import tensorflow.keras? (You don't have to manually install keras using pip in this case)

@JunsolKim
Copy link

JunsolKim commented Mar 8, 2022

Otherwise, you can try to load python module and install packages before starting sinteractive session as follows. (sinteractive session is not connected to internet)

module load python
source activate pytorch-gpu-1.2-cuda-10.0
pip install keras
sinteractive --account...

@Qiuyu-Li
Copy link
Author

Qiuyu-Li commented Mar 8, 2022

Dear Junsol, thank you so much! I used the second method and it worked!

@Qiuyu-Li Qiuyu-Li closed this as completed Mar 8, 2022
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

2 participants