Changes for page How to Run a Python Script in a VirtualEnv
Last modified by Leon Poon on 2021/03/23 13:16
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,8 +1,8 @@ 1 -After you have [[created a virtualenv>>doc: Computing Newbies.Python Newbies.How to Create a VirtualEnv.WebHome]], and [[installed some libraries in the virtualenv>>doc:Computing Newbies.Python Newbies.How to add libraries to a virtualenv.WebHome]], you should run your script in the virtualenv if your script makes use of the libraries that you installed.1 +After you have [[created a virtualenv>>doc:Main.How to Create a VirtualEnv.WebHome]], and [[installed some libraries in the virtualenv>>doc:Main.How to add libraries to a virtualenv.WebHome]], you should run your script in the virtualenv if your script makes use of the libraries that you installed. 2 2 3 3 Assuming that your script is at /abc/def/efg.py... 4 4 5 -In your console [[change working directory>>doc: Computing Newbies.How to Deal with Working Directory in Console.WebHome]] to your virualenv and type:5 +In your console [[change working directory>>doc:Main.How to Deal with Working Directory in Console.WebHome]] to your virualenv and type: 6 6 7 7 {{code language="plain"}} 8 8 bin/python3 /abc/def/efg.py