Pycharm终端错误 - 找不到命令

发布于 2025-01-31 20:13:33 字数 670 浏览 2 评论 0原文

我正在尝试在Pycharm终端(MACOS)中运行.py文件。 读书”文件中所述

pip install opencv-contrib-python
pip install numpy
pip install pandas
pip install Pillow
pip install pytest-shutil
pip install python-csv
pip install yagmail

该文件要求我在运行前安装一些依赖项,如“ 我想运行的名称)在终端中我收到此错误消息/library/frameworks/python.framework/versions/3.9/bin/python3:无法打开文件'/usters/users/maheshsoni/downloads/face-regognition -Attendance-System-Master 2/main.py':[ERRNO 2]没有此类文件或目录

如何解决此问题并查看输出?

PS-

我的虚拟环境已激活,这是整个命令行(env)maheshsoni@maheshs-macbook-air face-air vacemognition-Attendance-Antendance-System-Master 2%Python3 Main.py

I'm trying to run a .py file in the PyCharm terminal (macOS).
This file required me to install some dependencies before running, as stated in the readme file I activated a virtual environment and installed these:

pip install opencv-contrib-python
pip install numpy
pip install pandas
pip install Pillow
pip install pytest-shutil
pip install python-csv
pip install yagmail

But whenever I type the command python3 main.py (main.py is the file name I want to run) in the terminal I get this error message /Library/Frameworks/Python.framework/Versions/3.9/bin/python3: can't open file '/Users/maheshsoni/Downloads/Face-Recognition-Attendance-System-master 2/main.py': [Errno 2] No such file or directory.

How can I fix this and see the output?

PS-

My virtual environment is activated, this is the entire command line (env) maheshsoni@Maheshs-MacBook-Air Face-Recognition-Attendance-System-master 2 % python3 main.py

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文