User Tools

Site Tools


deptlab:python_virtual_env

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
deptlab:python_virtual_env [2023/12/07 14:56] – [Using a Python3 IDE with Virtual Environments] localadmindeptlab:python_virtual_env [2024/09/17 17:18] (current) – [Using Virtual Environments] localadmin
Line 81: Line 81:
  
 Now your shell session is back to normal, and the python command refers to the global Python install. Remember to do this whenever you’re done using a specific virtual environment. Now your shell session is back to normal, and the python command refers to the global Python install. Remember to do this whenever you’re done using a specific virtual environment.
 +
 +Using Virtual Environment makes it east to reset your Python environment if you need to use a different set of packages.  Just delete the old environment and create a new one.
  
 **Be sure to cleanup/delete unused temp files and environments when done using them.** **Be sure to cleanup/delete unused temp files and environments when done using them.**
Line 86: Line 88:
 ===== Tips for Using a Python3 IDE with Virtual Environments ===== ===== Tips for Using a Python3 IDE with Virtual Environments =====
  
-==== Preferred Method: Spyder Method 1 (Use with tensorflow) ====+==== Using Spyder in the 244 Lab ==== 
 +  - Activate (start) your virtual environment. 
 +  - Run spyder  
 +  - Go to Tools --> preferences --> python Interpreter and select the python file from the virtual env you want to link to Spyder ex : /home/you/envs/your_env/bin/python 
 + 
 +==== Preferred Method on Research Computers: Spyder Method 1 (Use with tensorflow) ====
 To use Spyder.   To use Spyder.  
   - Activate (start) your virtual environment.   - Activate (start) your virtual environment.
deptlab/python_virtual_env.1701960970.txt.gz · Last modified: by localadmin