2016-03-02 173 views

回答

0

嘗試安裝python-docx使用pip工具。從上面的鏈接 https://pip.pypa.io/en/latest/installing/ 首先下載PIP和解壓到C:\ PIP

然後嘗試使用pip install python-docx從C以下鏈接安裝Python的docx:\ PIP目錄。

http://python-docx.readthedocs.org/en/latest/user/install.html

希望它能幫助。

+0

HI Milind,當我嘗試安裝點它說你正在使用點7.1.2。爲了升級使用'python -m pip install --upgrade pip'。當我這樣做時,它說'不能導入名字PyPI;點是一個包,不能直接執行'。我也得到相同的錯誤'python -m pip install -U pip' – PyRookie

+0

你能告訴我python-docx tar文件應該放在哪裏? – PyRookie

2

對於第一個查詢:

  1. 打開CMD爲管理員。
  2. 轉到C:\Python27\Scripts
  3. 類型:pip install python-docx

這應該做的伎倆。

對於你的第二個查詢(PIP問題) 1.我會建議您重新安裝PIP:pip install --upgrade --force-reinstall

注(指定的文件夾上面去後):這不會影響現有的軟件包。