2015-02-11 70 views
0

我有一臺Windows XP機器,我試圖用一個沒有互聯網連接的自動腳本部署。我的Python腳本的一部分需要pymodbus3庫,儘管我已經設法安裝了很多所需的軟件包,但我仍在努力整理psutil如何在沒有Internet連接的Windows XP計算機上安裝Python psutil庫?

,如果我嘗試從我收到以下錯誤消息的來源安裝它:

D:\ZP300\Scripts\Z300Diagnostics>easy_install psutil-2.2.1.tar.gz 
Processing psutil-2.2.1.tar.gz 
Writing c:\docume~1\admini~1\locals~1\temp\easy_install-lgcclk\psutil-2.2.1\setup.cfg 
Running psutil-2.2.1\setup.py -q bdist_egg --dist-dir c:\docume~1\admini~1\locals~1\temp\easy_install-lgcclk\psutil-2.2.1\egg-dist-tmp-x_z0ii 
warning: no previously-included files matching '*' found under directory 'docs\_build' 
error: Setup script exited with error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat). 

如果我嘗試使用Windows安裝程序,似乎沒有要到,而無需啓動運行安裝程序的方式GUI。

有沒有一種方法可以在沒有Visual Studio 2010的情況下從源代碼安裝,或者在不需要用戶的情況下啓動Windows安裝程序?

回答

1

發現a solution here on SO,這是比我想象的其實更容易:

easy_install psutil-2.2.1.win32-py3.3.exe 
+1

您也可以使用'PIP安裝psutil-2.2.1-CP33-NONE-win32.whl'。 – eryksun 2015-02-11 12:24:41

相關問題