User Tools

Site Tools


lion:working_with_python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lion:working_with_python [2017/05/22 14:56] – created lenocillion:working_with_python [2017/05/29 08:47] (current) – [Suggested readings] lenocil
Line 5: Line 5:
 ===== OS-embedded python installation ===== ===== OS-embedded python installation =====
  
-All workstations will run a pre-generated windows 10 image  containing python, spyder, anaconda, etc..The operating system will be upgraded typically once a year.+All workstations will run a pre-generated windows 10 image  containing python, spyder, anaconda, etc..The operating system will be upgraded typically once a year and so will the python packages installed therein.
  
-===== Level 2 Headline =====+===== Central python library ===== 
 + 
 +Because upgrading python packages once a year might not be sufficient for certain tasks, each workstation will  
 +source any python package present in a central repository before sourcing any locally installed package. This set up has the effect of overriding any locally installed python package should an upgrade be available in the central repository. Because the central repository can also host packages that are not locally installed at all, it can effectively act as an expansion of the local python library. 
 + 
 +The central python repository is only writeable by the administrator and is located on the so-called ''T: drive''
 + 
 +:!: If your workstation cannot map the ''T: drive'', please contact the administrator or the helpdesk@physics. 
 + 
 +===== Users python libraries ===== 
 + 
 +To offer maximum flexibility and to allow users to do their programming as they wish, any python packages present in their home space in ''P:\AppData'' will be sourced first to allow overriding any of the centrally or locally installed python packages. For instance if a user wanted to install a package, they could execute the following lines  
 +<code> 
 + 
 +# open anaconda prompt 
 +set APPDATA=P:\AppData 
 +pip install <whatever package> --user 
 +</code> 
 +Similarly, the upgrade of an already existing package can be done in this way 
 +<code> 
 + 
 +# open anaconda prompt 
 +set APPDATA=P:\AppData 
 +pip install -U <whatever package> --user 
 +</code> 
 + 
 +:!: Add ''--no-deps'' if you want to exclude all dependencies from the install process. 
 + 
 +:!: If the ''P: drive'' is not mapped on your workstation, please contact the administrator or the helpdesk@physics. 
 + 
 +===== Notes and suggested readings ===== 
 + 
 +The configuration described above has been tested on both windows 7 and windows 10 workstations. 
 + 
 +[[https://docs.python.org/2.7/|Python]] 
 + 
 +[[https://docs.continuum.io/|Anaconda]] 
 + 
 +[[http://pythonhosted.org/spyder/|Spyder]]
  
lion/working_with_python.1495464998.txt.gz · Last modified: by lenocil