我想運行位置的文件setup.py
(64位Windows 7 ):如何修改64位Windows 7上的系統變量路徑?
C:\ Python27 \ LIB \站點包\ xlutils-1.6.0 \
正如我在開在cmd該位置(目錄),然後鍵入:
python setup.py install
我得到的錯誤:
'python' is not recognized as an internal or external command, operable program or batch file
我認爲這個問題是系統變量路徑因爲它太長了?
我想問你,我該如何修改系統變量路徑列表。現在,它看起來像這樣:
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
C:\Program Files (x86)\AMD APP\bin\x86_64;
C:\Program Files (x86)\AMD APP\bin\x86;
C:\Users\lskrinjar\Documents\AMD APP\bin\x86_64;
C:\Users\lskrinjar\Documents\AMD APP\bin\x86;
C:\Program Files (x86)\MiKTeX 2.9\miktex\bin;
C:\Program Files (x86)\PC Connectivity Solution\;
%CommonProgramFiles%\Microsoft Shared\Windows Live;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
c:\Program Files\Hewlett-Packard\Drive Encryption\;
C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;
C:\Program Files\WIDCOMM\Bluetooth Software\;
C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;
C:\Program Files\Broadcom\Broadcom 802.11\Driver;
C:\Program Files\MATLAB\R2011b\runtime\win64;
C:\Program Files\SlikSvn\bin;
C:\Program Files (x86)\Graphviz 2.28\bin;
C:\FFmpeg\bin\;
C:\Program Files (x86)\SlikSvn\bin;
C:\Python27;
C:\Python27\DLLs;
C:\Python27\Scripts;
C:\Python27\Lib\site-packages\vtk;
C:\Python27\gnuplot\binary;
C:\Python27\Lib\site-packages\osgeo;
C:\Python27\Lib\site-packages\PyQt4;
C:\Program Files (x86)\pythonxy\SciTE-3.2.2-1;
C:\Program Files (x86)\pythonxy\console;
C:\MinGW32-xy\bin;
C:\Program Files (x86)\pythonxy\swig;
C:\Program Files (x86)\pythonxy\gettext\bin;
C:\Program Files (x86)\IVI Foundation\IVI\bin;
C:\Program Files\IVI Foundation\IVI\bin;
C:\Program Files\IVI Foundation\VISA\Win64\Bin\;
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;
C:\Program Files\TortoiseSVN\bin;
C:\Program Files\Microsoft\Web Platform Installer\;
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;
C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;
C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;
C:\Program Files (x86)\CMake 2.8\bin\;
%MINGW_DIR%\bin
我不知道是否有主文件夾路徑已經我可以刪除子文件夾路徑?例如;我對路徑主要蟒蛇文件夾(即:C:\ Python27),可我再刪除在系統變量路徑中的所有子文件夾(或不?):
C:\Python27\DLLs;
C:\Python27\Scripts;
C:\Python27\Lib\site-packages\vtk;
C:\Python27\gnuplot\binary;
C:\Python27\Lib\site-packages\osgeo;
C:\Python27\Lib\site-packages\PyQt4;
我還沒有表達清楚。上面的列表是系統變量的路徑。我也看看你建議的鏈接並創建新的(PYTHONPATH)系統變量。重新啓動電腦,仍然出現錯誤。還有什麼建議? – avstenit
我看到你的系統「PATH」變量中已經有了python。如果你有權限,你可以加入這個聊天:http://chat.stackoverflow.com/rooms/39171/python-path-setting – Vivek
另一種更簡單的方法來做同樣的事情是給絕對路徑。看看編輯。 – Vivek