{"id":447,"date":"2024-03-07T10:26:24","date_gmt":"2024-03-07T09:26:24","guid":{"rendered":"https:\/\/www.lptms.universite-paris-saclay.fr\/computing\/?page_id=447"},"modified":"2024-05-27T12:16:28","modified_gmt":"2024-05-27T10:16:28","slug":"python","status":"publish","type":"page","link":"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/application\/python\/","title":{"rendered":"Python"},"content":{"rendered":"\n<p><strong><span style=\"text-decoration: underline;\">Installation of the environment for Python without admin privilege<\/span><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"jupyter-notebook\">Jupyter notebook<\/h2>\n\n\n\n<p>The Jupyter Notebook is the original web application for creating and sharing computational documents. It offers a simple, streamlined, document-centric experience. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Project_Jupyter\" data-type=\"link\" data-id=\"https:\/\/en.wikipedia.org\/wiki\/Project_Jupyter\">Read more&#8230;<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Installation:\n$ python3 -m pip install --upgrade pip --user\n$ python3 -m pip install --upgrade six --user\n$ python3 -m pip install jupyter --user\n\nAfter the installation, to run the notebook:\n$ jupyter notebook<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"jupyterlab\">J<strong>upyter lab<\/strong><\/h2>\n\n\n\n<p>JupyterLab offers a more advanced, feature rich, customizable experience compared to Jupyter Notebook. <a href=\"https:\/\/jupyterlab.readthedocs.io\/en\/latest\/\" data-type=\"link\" data-id=\"https:\/\/jupyterlab.readthedocs.io\/en\/latest\/\">Read more&#8230;<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Installation:\n$ python3 -m pip install --upgrade pip --user\n$ python3 -m pip install --upgrade six --user\n$ python3 -m pip install jupyterlab --user\n\nOnce installed, launch JupyterLab with:\n$ jupyter lab\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conda\">Conda<\/h2>\n\n\n\n<p>Conda is an open-source, cross-platform, language-agnostic package manager and environment management system. It was originally developed to solve difficult package management challenges faced by Python data scientists, and today is a popular package manager for Python and R. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Conda_(package_manager)\" data-type=\"link\" data-id=\"https:\/\/en.wikipedia.org\/wiki\/Conda_(package_manager)\">Read more&#8230;.<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em>Installation<\/em>: \n$ wget https:\/\/repo.anaconda.com\/miniconda\/Miniconda3-latest-Linux-x86_64.sh\n$ sh Miniconda3-latest-Linux-x86_64.sh\n\nUpdate:\n$ \/home\/$USER\/miniconda3\/bin\/conda update -n base -c defaults conda\n\nCreate a conda environment and activate conda:\n$ \/home\/$USER\/miniconda3\/bin\/conda create --name myconda\n$ \n$ conda activate myconda\n\n<em>Install packages:<\/em>\nTensorFlow:\n$ conda create --name=tf python=3.10\n$ conda activate tf\n$ conda install -c conda-forge cudnn\n$ mkdir -p $CONDA_PREFIX\/etc\/conda\/activate.d\n$ echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX\/lib\/' &gt; $ CONDA_PREFIX\/etc\/conda\/activate.d\/env_vars.sh\n$ python3 -m pip install TensorFlow\n\n\n\nDisable Conda:\n$ conda config --set auto_activate_base False\n\n<em>User guide: <\/em>\n\n# list the envs:\n$ conda info --envs\nor \n$ conda env list\n\n\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Installation of the environment for Python without admin privilege Jupyter notebook The Jupyter Notebook is the original web application for creating and sharing computational documents. It offers a simple, streamlined, document-centric experience. Read more&#8230; Jupyter lab JupyterLab offers a more &hellip; <a href=\"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/application\/python\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":22,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-447","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/wp-json\/wp\/v2\/pages\/447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/wp-json\/wp\/v2\/comments?post=447"}],"version-history":[{"count":30,"href":"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/wp-json\/wp\/v2\/pages\/447\/revisions"}],"predecessor-version":[{"id":1715,"href":"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/wp-json\/wp\/v2\/pages\/447\/revisions\/1715"}],"up":[{"embeddable":true,"href":"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/wp-json\/wp\/v2\/pages\/22"}],"wp:attachment":[{"href":"http:\/\/www.lptms.universite-paris-saclay.fr\/computing\/wp-json\/wp\/v2\/media?parent=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}