简体   繁体   English

错误信息是 Errno 2 No such file or directory

[英]Error Message is Errno 2 No such file or directory

I typed in these two commands to my terminal and they were working我在终端中输入了这两个命令,它们正在工作

pip install smbus-cffi pip 安装 smbus-cffi

pip install git+https://github.com/bivab/smbus-cffi.git pip 安装 git+https://github.com/bivab/smbus-cffi.git

There is python and git on the raspberry pi.树莓派上有python和git。 I'm following this tutorial as a guide to download the smbus-cffi.我按照本教程作为下载 smbus-cffi 的指南。 When I press "python setup.py install," the error message is "can't open file 'setup.py': [Errno 2] No such file or directory."当我按“python setup.py install”时,错误消息是“无法打开文件‘setup.py’:[Errno 2]没有这样的文件或目录。” Why cant it open the file?为什么打不开文件?

I tried upgrading the setup tools and then ran the "python setup.py," but it still doesn't work.我尝试升级安装工具,然后运行“python setup.py”,但它仍然不起作用。 My assumption is that I'm on the incorrect file path that's why the command doesn't run.我的假设是我在错误的文件路径上,这就是命令不运行的原因。 How do I find the correct file path?如何找到正确的文件路径?

If something is downloaded on the root folder of rpi, can it still be accessed when I go out of the root? rpi的根目录下下载了东西,出root还能访问吗? Thanks in advance提前致谢

Are you sure you're in the correct directory?你确定你在正确的目录中吗?

I would recommend the following set of commands as an alternative我会推荐以下命令集作为替代

git clone https://github.com/bivab/smbus-cffi

cd smbus-cffi

python setup.py install

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

相关问题 错误:FileNotFoundError:[Errno 2]没有这样的文件或目录: - Error: FileNotFoundError: [Errno 2] No such file or directory: FileNotFoundError:[错误2]没有这样的文件或目录:错误 - FileNotFoundError: [Errno 2] No such file or directory: error Popen 错误:[Errno 2] 没有那个文件或目录 - Popen error: [Errno 2] No such file or directory Python错误“ IOError:[Errno 2]没有这样的文件或目录”,但文件在那里 - Python error “IOError: [Errno 2] No such file or directory” but file is there Popen 错误:[Errno 2] 没有这样的文件或目录:'minisat':'minisat' - Popen error: [Errno 2] No such file or directory: 'minisat': 'minisat' Py2exe错误:[Errno 2]没有这样的文件或目录 - Py2exe error: [Errno 2] No such file or directory JupyterLab 错误 FileNotFoundError: [Errno 2] 没有那个文件或目录 - JupyterLab Error FileNotFoundError: [Errno 2] No such file or directory Python 错误 FileNotFoundError: [Errno 2] 没有这样的文件或目录 - Python Error FileNotFoundError: [Errno 2] No such file or directory FileNotFoundError: [Errno 2] 没有这样的文件或目录 Azure Python 错误 - FileNotFoundError: [Errno 2] No such file or directory Azure Python error Python 错误:FileNotFoundError: [Errno 2] 没有那个文件或目录 - Python error: FileNotFoundError: [Errno 2] No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM