microsoft / typespec

https://typespec.io/
MIT License
4.54k stars 220 forks source link

[Python] encounter failure when "npm install @azure-tools/typespec-python" in a non-python environment #5112

Open josefree opened 1 week ago

josefree commented 1 week ago

Clear and concise description of the problem

The "npm install @azure-tools/typespec-python" command failed in a non-Python environment, requiring Python installation and a restart to succeed.

I understand that generating Python client code needs a Python environment, but it's frustrating to get a long error trace before starting the code generation.

Remove the dependency check when installing the tool lib. Also, "npm install @azure-tools/typespec-java" works in non-Java environments, Cross language consistency is expected.

Checklist