Python: Difference between revisions

Jump to navigation Jump to search
279 bytes added ,  3 years ago
no edit summary
(amplify advice to load modules before creating virtualenv)
No edit summary
Line 67: Line 67:
To exit the virtual environment, simply enter the command <tt>deactivate</tt>:
To exit the virtual environment, simply enter the command <tt>deactivate</tt>:
{{Command|prompt=(ENV) [name@server ~]|deactivate}}
{{Command|prompt=(ENV) [name@server ~]|deactivate}}
You can now use the same virtual environment over and over again.  Each time:
# Load the same environment modules that you loaded when you created the virtual environment, e.g. <tt>module load python scipy-stack</tt>
# Activate the environment, <tt>source ENV/bin/activate</tt>


=== Installing packages === <!--T:13-->
=== Installing packages === <!--T:13-->
Bureaucrats, cc_docs_admin, cc_staff
2,879

edits

Navigation menu