Message354857
If you just want to be able to import modules from the venv, and you know the path to it, it's simpler to just do:
import sys
sys.path.append(r"path to venv\Lib\site-packages")
Updating sys.executable is only necessary if you're going to use libraries that try to re-launch itself, but any embedding application is going to have to do that anyway. |
|
| Date |
User |
Action |
Args |
| 2019-10-17 22:39:18 | steve.dower | set | recipients:
+ steve.dower, ncoghlan, pitrou, vstinner, pyscripter, grahamd, methane, eric.snow |
| 2019-10-17 22:39:17 | steve.dower | set | messageid: <[email protected]> |
| 2019-10-17 22:39:17 | steve.dower | link | issue22213 messages |
| 2019-10-17 22:39:17 | steve.dower | create | |
|