python - How to install and use python libraries in mac using PIP with terminal
问题描述
Firstly i'm new to python environment.
I installed PIP in mac using terminal and the python version is 2.7.16. I want to install and use Simple Image annatator(https://github.com/sgp715/simple_image_annotator).
I install flask(pip install flask) and i did cd into the cloned folder if simple image annotator. For reference please see the github repo for installation steps.
Than after i don't know what to do to use this library if i run this command(python app.py /images/directory) it gives No files.
How can i install and use the simple image annotator in mac can somebody please tell me the setup process steps.
working with python libraries is entirely new to me. Thanks in advance.
BELOW IS EDITED QUESTION FOR MORE EXPLANATION:
I installed flask and moved to the cloned folder please see the terminal commands as shown in screenshot.
Next remaining installation steps are:
start the app
$ python app.py /images/directory
you can also specify the file you would like the annotations output to (out.csv is the default)
$ python app.py /images/directory --out test.csv
open http://127.0.0.1:5000/tagger in your browser only tested on Chrome
I don't know how to execute remaining steps. images are available in downloads/images folder in my mac.
How to execute these commands?
Screenshots to explain more:
解决方案
问题可能来自您的 python 版本。
尝试使用 python3(如果已安装)
python3 app.py /images/directory
推荐阅读
- wso2 - WSo2:Rabbitmq 是否可以在没有代理的情况下从序列中重新排队
- jquery - getJSON 调用 Struts 动作类中的方法进行自动完成
- kotlin - Kotlin DSL 自动添加/生成到 MutableList
- c# - Ef Core HasConversion 无法使用 CosmosDb 提供程序
- javascript - 'data' 和 'end' 事件如何从 cURL 发送到 nodejs 的 HTTP 服务器?
- tensorflow - 构建一个深度神经网络,产生分布为多元标准正态分布的输出
- php - 如果验证具有空值的 Laravel 数组,则需要
- firebase - Flutter - 使用提供者和 Firestore 返回空列表
- python - 使用 pandas 以加权方式计算 value_counts
- reactjs - 将表格添加到 Quill 编辑器