簡體   English   中英

如何安裝和使用open-tamil包?

[英]how to install and use open-tamil package?

我想使用open-tamil包來處理tamil文本。 我將其下載為“open-tamil-master”包,其中包含setup.py文件。 但在運行文件時,它顯示“錯誤沒有提供命令”。 也可以在https://github.com/arcturusannamalai/open-tamil上找到我如何安裝和使用它?

要下載並安裝(使用setup.py)open-tamil,您可以執行以下操作

git clone https://github.com/arcturusannamalai/open-tamil.git
cd open-tamil
sudo python setup.py install

它說“錯誤沒有提供命令”

那是因為您需要通過提供命令告訴setup.py要做什么。 在這種情況下,這是install

現在您可以導入其模塊等:

tim@tim-N53SN:~$ python
Python 2.7.3 (default, Feb 27 2014, 19:58:35) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import transliterate
>>> import tamil
>>>

可以提供給setup.py的命令的完整列表:

Standard commands:
  build            build everything needed to install
  build_py         "build" pure Python modules (copy to build directory)
  build_ext        build C/C++ 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