簡體   English   中英

適用於python 3.5.x的有效PyChef構建

[英]Working PyChef build for python 3.5.x

我正在嘗試為https://github.com/coderanger/pychef/commits/master Master分支運行安裝程序。 當我運行以下命令時,出現了錯誤且沒有安裝:

回購根目錄包含

python setup.py 

結果錯誤:

> C:\...\Python\Python35-32\lib\site-packages\setuptools-19.2-py3.5.egg\setuptools\dist.py:284:
> UserWarning: Normalizing '0.2.4-dev' to '0.2.4.dev0' 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

您應該向setup.py添加命令:

$ python setup.py build
$ sudo python setup.py install

您可以運行python setup.py --help-commands以獲得所有可能命令的列表:

Standard commands:
  build             build everything needed to install
  build_py          "build" pure Python modules (copy to build directory)
  build_ext         build C/C++ and Cython extensions (compile/link to build directory)
  build_clib        build C/C++ libraries used by Python extensions
  build_scripts     "build" scripts (copy and fixup #! line)
  clean             clean up temporary files from 'build' command
  install           install everything from build directory
  install_lib       install all Python modules (extensions and pure Python)
  install_headers   install C/C++ header files
  install_scripts   install scripts (Python or otherwise)
  install_data      install data files
  sdist             create a source distribution (tarball, zip file, etc.)
  register          register the distribution with the Python package index
  bdist             create a built (binary) distribution
  bdist_dumb        create a "dumb" built distribution
  bdist_rpm         create an RPM distribution
  bdist_wininst     create an executable installer for MS Windows
  upload            upload binary package to PyPI
  check             perform some checks on the package

暫無
暫無

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

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