我配置蟒到路徑變量,下面是路徑變量內容生成錯誤「':方案C:不能打開文件[錯誤2]沒有這樣的文件或目錄」
%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\v1.0\;C:\Python27\;c:\program files\java\jdk1.7.0_03\bin;.;c:\program files\tortoisesvn\bin;d:\apache-ant-1.8.3\bin;c:\program files\ibm\gsk8\lib;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;%M2_HOME%\bin;C:\Program Files\Lenovo\Bluetooth Software\;
爲什麼我配置蟒蛇手段,IAM創建exe文件使用Ant構建和installj
<target name="installer.izpack.exe" depends="installer.izpack" description="build release executable izpack installer">
<exec executable="python" failonerror="true">
<arg line="${installer.izpack.dir}/utils/wrappers/izpack2exe/izpack2exe.py"/>
<arg line="--file=${basedir}/installer/EasyIT-installer.jar"/>
<arg line="--output=${basedir}/installer/EasyIT-installer.exe"/>
<arg line="--no-upx"/>
</exec>
</target>
,但建造的應用越來越以下錯誤時,請任何人都可以解決這一幫助。
installer.izpack.exe:
[exec] python: can't open file 'C:\Program': [Errno 2] No such file or directory
BUILD FAILED
E:\Java Projects\Spark Projects\EastIT - Copy\build\build.xml:873: exec returned: 2
Total time: 51 seconds
但文件夾名稱是這樣的,我該如何解決它? – developer
在我的答案中顯示的路徑名稱周圍加引號。 –
報價不適用於我...我可以你〜字符 – developer