Crates.io | xshell-venv |
lib.rs | xshell-venv |
version | 1.3.0 |
source | src |
created_at | 2022-04-26 20:51:05.746079 |
updated_at | 2024-05-13 12:04:20.610086 |
description | xshell-venv manages your Python virtual environments in code. |
homepage | |
repository | https://github.com/badboy/xshell-venv |
max_upload_size | |
id | 575728 |
size | 16,992 |
xshell-venv
xshell-venv
manages your Python virtual environments in code.
xshell-venv
is an extension to xshell, the swiss-army knife for writing cross-platform “bash” scripts in Rust.
use xshell_venv::{Shell, VirtualEnv};
let sh = Shell::new()?;
let venv = VirtualEnv::new(&sh, "py3")?;
venv.run("print('Hello World!')")?; // "Hello World!"
python3.exe
or python.exe
python3
or python
venv
package
python3-venv
or under a similar name.
Double check your packages. E.g. on Ubuntu Python 3.8 is available as python3.8
and the corresponding venv
package is named python3.8-venv
.MIT.