Update python_util.rs

This commit is contained in:
Shunsuke Shibayama 2022-10-30 18:25:10 +09:00
parent 4bc113f7d1
commit f7d2096d3e

View file

@ -373,8 +373,8 @@ pub fn which_python() -> String {
if res.is_empty() { if res.is_empty() {
println!("python not found"); println!("python not found");
std::process::exit(1); std::process::exit(1);
} else if res.contains("pyenv") { } else if res.contains("pyenv") && cfg!(windows) {
println!("cannot use pyenv"); println!("cannot use pyenv-win"); // because pyenv-win does not support `-c` option
std::process::exit(1); std::process::exit(1);
} }
res res