henon / Python.Included

A Python.NET based framework enabling .NET libraries to call into Python packages without depending on a local Python installation.
MIT License
321 stars 52 forks source link

EmbededPythonHome with spaces does not allow pip to install #59

Closed iongion closed 11 months ago

iongion commented 11 months ago

I currently have this

"'C:\\ProgramData\\My' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"

But the real path is

"'C:\\ProgramData\\My Awesom Tool' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"

These need escaping

Maybe some useful links

henon commented 11 months ago

Check out the commit, is that what you mean? 83dc0a2

iongion commented 11 months ago

Awesome, I guess that should be it, testing tomorrow, huge thank you!

henon commented 11 months ago

I packed new nugets: https://www.nuget.org/packages/Python.Included/3.11.5 https://www.nuget.org/packages/Python.Deployment/2.0.4

If there are any issues you can reopen this thread.

henon commented 10 months ago

For your info, the adding of quotes caused a follow-up error which would cause pip not to install due to missing quotes around the cmd.exe /C argument. this is fixed now too.

henon commented 10 months ago

https://www.nuget.org/packages/Python.Deployment/2.0.5 https://www.nuget.org/packages/Python.Included/3.11.6