- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I'm trying to run qsub myjob but I'am getting an error. Here what I've done so far:
1. conda create -n myenv intel python=3
2. source activate myenv
3. installed libraries
pip install --ignore-installed --upgrade keras
pip install --ignore-installed --upgrade tensorflow
4. created myjob file with this lines inside:
# PBS -l nodes=1
cd $PBS_O_WORKDIR
echo Starting calculation
python NASNet.py
echo End of calculation
5. Executed qsub myjob
6. I'm getting this error:
from keras.preprocessing.image import ImageDataGenerator
ModuleNotFoundError: No module named 'keras'
I did a test using python NASNet.py in the terminal and it worked perfectly. Why is it not recognizing keras when I'am using qsub?
- Etiquetas:
- Modules
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
Thank you for the question.
Kindly include the command to activate you environment (source activate myenv) as part of the script. i.e please modify the myjobfile as below :
# PBS -l nodes=1 cd $PBS_O_WORKDIR echo Starting calculation source activate myenv python NASNet.py echo End of calculation Please let us know if the answer provided helped. Regards, Anju
Enlace copiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
Thank you for the question.
Kindly include the command to activate you environment (source activate myenv) as part of the script. i.e please modify the myjobfile as below :
# PBS -l nodes=1 cd $PBS_O_WORKDIR echo Starting calculation source activate myenv python NASNet.py echo End of calculation Please let us know if the answer provided helped. Regards, Anju
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi ,
Thanks for the confirmation. We are closing this thread.
Feel free to open another thread for any further queries.
Regards,
Anju
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla