python - 无法运行树懒注释工具

标签 python annotations installation setuptools

我正在尝试使用注释工具Sloth 。 我如何让程序运行?

JMAIR-3:sloth user$ which python
/usr/local/bin/python
JMAIR-3:sloth user$ python --version
Python 2.7.10
JMAIR-3:sloth user$ brew install PyQt
Warning: pyqt-4.11.4 already installed
JMAIR-3:sloth user$ ls
COPYING     LICENSE     README.md   build       doc     examples    scripts     setup.py    sloth       tests
JMAIR-3:sloth user$ sloth
-bash: sloth: command not found
JMAIR-3:sloth user$ sudo python setup.py install 
Password:
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/bin/sloth to 755
running install_data
running install_egg_info
Removing /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sloth-1.0-py2.7.egg-info
Writing /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sloth-1.0-py2.7.egg-info
JMAIR-3:sloth user$ sloth
-bash: sloth: command not found
JMAIR-3:sloth user$ sloth examples/example1_labels.json
-bash: sloth: command not found


 python sloth
/usr/local/opt/python/bin/python2.7: can't find 'main' module in 'sloth'

最佳答案

以下内容适用于 Windows,使用 Anaconda python 3.5 构建(并安装所有依赖项):

pip install git+https://github.com/cvhciKIT/sloth.git
conda install -c anaconda pyqt=4.11.4
conda install scikit-image

关于python - 无法运行树懒注释工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33212494/

相关文章:

python - Pandas 相当于多列的 vlookup

python - Cron 作业生成 crontab.txt : not found

java - JPA 中的复合键

wix - MSI引用计数:两种产品安装相同的MSI

javafx-maven-plugin mac pkg 安装程序不显示应用程序图标

python - 如何使用 python 重新启动 mysql 中保存的调度程序

python - 从标签中排除数据

java - 我应该在 spring 中为我的项目使用注释吗?

java - 如何将 CSV 记录映射到 bean?

compiler-errors - 无法在 Windows 上编译 Rust hello world : linker link. 找不到 exe