Translations:Python/40/fr

Revision as of 22:16, 22 January 2019 by Diane27 (talk | contribs) (Created page with "}} where the <tt>requirements.txt</tt> file will have been created from a test environment. For example, if you want to create an environment for Tensorflow, you would do...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

}} where the requirements.txt file will have been created from a test environment. For example, if you want to create an environment for Tensorflow, you would do the following on a login node :

[name@server ~]$ module load python/3.6
[name@server ~]$ ENVDIR=/tmp/$RANDOM
[name@server ~]$ virtualenv --no-download $ENVDIR
[name@server ~]$ source $ENVDIR/bin/activate
[name@server ~]$ pip install --no-index tensorflow_gpu
[name@server ~]$ pip freeze > requirements.txt
[name@server ~]$ deactivate
[name@server ~]$ rm -rf $ENVDIR