User Tools

Site Tools


setup:pythonvirtual

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
setup:pythonvirtual [2016/10/06 11:09]
sey212
setup:pythonvirtual [2016/12/13 10:23] (current)
sertalpbilal Visual changes
Line 1: Line 1:
-<​note>​Contact Alireza for more help regarding this page.</​note>​ 
- 
 ======Python Virtual Environment====== ======Python Virtual Environment======
  
-Q: Admin can you install ​package?+Q: Admin can you **install** package ​//X//?
  
-Q: Can you remove ​package which is conflicting with something else?+Q: Can you **remove** package ​//Y// which is conflicting with //X// and meanwhile update package //Z//?
  
-Q: Can I do **anything** I want **without having to ask**?+Q: On second thought, ​Can I do **anything** I want **without having to ask**?
  
  
Line 17: Line 15:
 Just what you need, a standalone python which is yours and you have the control over it..! Thus you** don’t need any super privileges** to install libraries or better yet you can have multiple python environments with different settings and packages. The steps to get and use this tool is quite easy: Just what you need, a standalone python which is yours and you have the control over it..! Thus you** don’t need any super privileges** to install libraries or better yet you can have multiple python environments with different settings and packages. The steps to get and use this tool is quite easy:
  
-==Install it using PIP (Skip this step in COR@L Machines)==+=====Install it using PIP (Skip this step in COR@L Machines)=====
  
 <code bash>$ pip install virtualenv</​code>​ <code bash>$ pip install virtualenv</​code>​
-==Setup==+=====Setup=====
 Create a folder to contain the files regarding to virtual python instance . Running the second command creates the mentioned folder named “vpython”. Create a folder to contain the files regarding to virtual python instance . Running the second command creates the mentioned folder named “vpython”.
  
Line 27: Line 25:
   -  To start using the new python   -  To start using the new python
  
-==Initialize==+=====Initialize=====
 <code bash>$ source vpython/​bin/​activate <code bash>$ source vpython/​bin/​activate
 (vpython)$</​code> ​ (vpython)$</​code> ​
Line 33: Line 31:
  
  
-==Going back to Normal==+=====Going back to Normal=====
 After your work is done you can simply deactivate the active environment and get back to normal boring settings.! After your work is done you can simply deactivate the active environment and get back to normal boring settings.!
  
  
 <code bash>$ deactivate</​code> ​ <code bash>$ deactivate</​code> ​
 +
 +<​note>​Contact [[:​coral_lab#​administrators|Alireza [sey212]]] for more help regarding this page.</​note>​
setup/pythonvirtual.1475766561.txt.gz · Last modified: 2016/10/06 11:09 by sey212