簡體   English   中英

安裝 Python package: setup.py install - error: no commands supplied

[英]Installing Python package: setup.py install - error: no commands supplied

  • 我正在嘗試在 windows 7 中安裝 python-pptx-0.5.7 package。我所做的如下:

     1) Downloaded the python-pptx-0.5.7.tar file from website. 2) Unzipped it and kept it in the Python34/Script folder. 3) I used command prompt to install the package as setup.py install. Here is the ouptput of the command that I wrote in command prompt c:\Python34\Scripts\python-pptx-0.5.7>setup.py install usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts]...] or: setup.py --help [cmd1 cmd2...] or: setup.py --help-commands or: setup.py cmd --help error: no commands supplied.

    第二種方法使用“pip”

     c:\Python34\Scripts>pip install python-pptx

    收集 python-pptx 下載 python-pptx-0.5.7.tar.gz (5.2MB) 100% |########################### #####| 5.2MB 25kB/s 收集 lxml>=3.1.0 (來自 python-pptx) 下載 lxml-3.5.0.tar.gz (3.8MB) 100% |############### #################| 3.8MB 41kB/s 要求已滿足(使用 --upgrade 升級): Pillow>=2.6.1 in c:\python34\lib\site-packages (from python-pptx) Collecting XlsxWriter>=0.5.7 (from python -pptx) 下載 XlsxWriter-0.7.7-py2.py3-none-any.whl (133kB) 100% |######################### #######| 135kB 62kB/s 構建 wheels 收集包:python-pptx, lxml running setup.py bdist_wheel for python-pptx 存儲在目錄:C:\Users\praveen\AppData\Local\pip\Cache\wheels\1f\fa\42 \ bbc04bb0ef4be4cd49f228cc1fa3280bb99c1a37d3b193b81b 運行 lxml 錯誤的 setup.py bdist_wheel:需要 Microsoft Visual C++ 10.0(無法找到 vcvarsall.bat)。


    lxml 構建輪失敗成功構建 python-pptx 構建 lxml 失敗錯誤:b"'xslt-config' 未被識別為內部或外部命令,\r\no 可操作程序或批處理文件。\r\n" ** make確保安裝了 libxml2 和 libxslt 的開發包 **

遵循官方的Python軟件包安裝指南

軟件包應安裝如下:

pip install python-pptx

從pypi.python.org自動下載。

錯誤:命令“/usr/bin/clang”失敗,退出代碼為 69 [輸出結束]

注意:此錯誤源自子進程,可能不是 pip 的問題。錯誤:legacy-install-failure

× 嘗試安裝 package 時遇到錯誤。╰─> lxml

注意:這是上面提到的package的問題,不是pip。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM