I learned about a bug that seems to be pip Spaces in Python path make pip-installed launchers fail on Windowspip 的一個 bug Spaces in Python path make pip-installed launchers fail on Windows
To put it simply, it is caused by the blanks in the shebang line (the line in the script that specifies the python path). It may be that there are blanks in the path to install Python and pip did not add it correctly for you during installation. Upper quotes, for example your Python is in:
Solution🎜:🎜
🎜There are some workarounds to solve the problem. The first one is to go directly to the script of pyinstaller and use quotation marks to solve the whitespace problem (in the Script subdirectory of the Python directory): 🎜
🎜Or run the script directly using Python (not through the shebang line):🎜
rrreee
🎜I found out that someone else used a trick, reinstalling Python so that there is no blank space in the path (laughing), it is really a trick. 🎜
I learned about a bug that seems to be
pip
Spaces in Python path make pip-installed launchers fail on Windowspip
的一個 bug Spaces in Python path make pip-installed launchers fail on Windows原因分析:
簡單來說就是 shebang line (script 裡面指定 python path 的那一行) 裡面有空白導致的,可能就是安裝 Python 的路徑上有空白而且
pip
在安裝的時候沒正確幫你加上引號,例如你的 Python 在:然後用
Cause analysispip
:
To put it simply, it is caused by the blanks in the shebang line (the line in the script that specifies the python path). It may be that there are blanks in the path to install Python and
pip
did not add it correctly for you during installation. Upper quotes, for example your Python is in:pip
to install Pyinstaller's script. The spaces in the path are not used correctly. Quotation marks are handled well:Are you still using Python on Windows? And you don’t need Conda?
Read this article quickly
[Original] Container Definition Application: Container Revolution for Data Science