简体   繁体   English

无法打开文件 'main.py': [Errno 2] 没有那个文件或目录

[英]Can't open file 'main.py': [Errno 2] No such file or directory

I'm trying to trying to install and use HATCH using this: https://github.com/FlorianBord2/Hatch-python3-optimised我正在尝试使用以下方法安装和使用 HATCH: https://github.com/FlorianBord2/Hatch-python3-optimised

I've downloaded the requirements and the git clone, but whenever i try to run the program in cmd, i get this error message:我已经下载了要求和 git 克隆,但每当我尝试在 cmd 中运行该程序时,我都会收到此错误消息:

Python38-32\python.exe: can't open file 'main.py': [Errno 2] No such file or directory

Any help at all would be appreciated!任何帮助都将不胜感激!

  1. Make sure you are in the same directory where the git repo is downloaded确保您位于下载 git 存储库的同一目录中

  2. If you are not working in a virtual environment then make sure the setup.py file of each has been set up successfully to check for installed requirement type in cmd/terminal pip3 freeze如果您不在虚拟环境中工作,请确保每个文件的 setup.py 文件已成功设置,以在 cmd/terminal pip3 freeze中检查已安装的需求类型

    If you don't see anything that means your requirements are cached but not installed try writing the `pip install " again and check for setup.py starting to be installed or not.如果您没有看到任何表明您的要求已被缓存但未安装的内容,请尝试再次编写“pip install”并检查 setup.py 是否开始安装。

  3. If you are working in a virtual environment then make sure the env is activated and setup.py twice as for one-time cache file might be running which is not taken by your virtual environment如果您在虚拟环境中工作,请确保 env 已激活并且 setup.py 可能正在运行两次,因为一次性缓存文件可能不会被您的虚拟环境占用

  4. If you are not working using some text editor or IDE then only do all the above step mentioned如果您不使用某些文本编辑器或 IDE,则只需执行上述所有步骤

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Dockerfile:无法打开文件'./main.py':[Errno 2]没有这样的文件或目录 - Dockerfile: can't open file './main.py': [Errno 2] No such file or directory python:无法打开文件'main.py':[Errno 2]没有这样的文件或目录-docker - python: can't open file 'main.py': [Errno 2] No such file or directory - docker python3: 无法打开文件 'model_main_tf2.py': [Errno 2] 没有那个文件或目录 - python3: can't open file 'model_main_tf2.py': [Errno 2] No such file or directory 无法打开文件'file.py':[Errno 2] 没有这样的文件或目录 - Can't open file 'file.py': [Errno 2] No such file or directory 无法打开文件 'manage.py': [Errno 2] 没有那个文件或目录 - Can't open file 'manage.py': [Errno 2] No such file or directory 无法打开文件“import.py”:[Errno 2] 没有这样的文件或目录 - can't open file 'import.py' :[Errno 2] No such file or directory 无法打开文件'menu.py':[Errno 2]没有这样的文件或目录 - Can't open file 'menu.py': [Errno 2] No such file or directory 无法打开文件'.manage.py':[Errno 2] 没有这样的文件或目录 - can't open file '.manage.py': [Errno 2] No such file or directory 无法打开文件“audioAnalysis.py”:[Errno 2] 没有这样的文件或目录 - Can't open file 'audioAnalysis.py': [Errno 2] No such file or directory 无法打开文件 'app.py': [Errno 2] 没有那个文件或目录 - can't open file 'app.py': [Errno 2] No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM