Is there a way to activate a python virtual env in one raku shell command, and then access the env in the next shell command? I want to do something like this in raku. Let's assume there is an executable named "execute_software" under the "some_env" env:
shell("source some_env");
shell("execute_software XXX XXX");
shell("source deactivate");
Currently, this doesn't work for me.
Thanks!
Tao
I don't know how you expected the environment to stay around after the program exits.
That is not something you can do with anything as far as I'm aware.
If that is something you want, may I suggest using Inline::Python?
use Inline::Python;
my $py = Inline::Python.new();
$py.run('print("hello world")');
use string:from<Python>;
say string::capwords('foo bar'); # prints "Foo Bar"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With