【求助贴】requirements.txt文件已存在Chinese-LLaMA-Alpaca-3-3.0目录下但是依旧无法运行。 #231

Open
opened 2024-10-19 12:38:45 +08:00 by LIN · 4 comments

可以看到报错提示没有requirements.txt这个文件,这个指令pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple 需要在包含requirements.txt文件的Chinese-LLaMA-Alpaca-3-3.0这个目录下运行
QQ20241017-154241.png
另外就是如果遇到新的问题可以在原帖这里点击“在新的工单中引用“或者直接开新帖提问,这样我们比较容易可以即时看到提问尽快回复
123.png

Originally posted by @x in #205 (comment)

老师我检查了一下,requirements.txt文件已经存在\root\Chinese-LLaMA-Alpaca-3-3.0目录下了但是依然无法正常运行

可以看到报错提示没有requirements.txt这个文件,这个指令pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple 需要在包含requirements.txt文件的Chinese-LLaMA-Alpaca-3-3.0这个目录下运行 ![QQ20241017-154241.png](/attachments/4bbbb897-3894-46c4-80be-399470cd3661) 另外就是如果遇到新的问题可以在原帖这里点击“在新的工单中引用“或者直接开新帖提问,这样我们比较容易可以即时看到提问尽快回复 ![123.png](/attachments/33d8db9d-b57e-486b-8288-f09fd1f824f9) _Originally posted by @x in https://hsw-git.huishiwei.cn/HswOAuth/llm_course/issues/205#issuecomment-241_ 老师我检查了一下,requirements.txt文件已经存在\root\Chinese-LLaMA-Alpaca-3-3.0目录下了但是依然无法正常运行
Author

路劲与报错如下,没有另外的用户名只有这个直接的root文件夹

路劲与报错如下,没有另外的用户名只有这个直接的root文件夹

同学,你在路径下运行一下dir或者ls -l命令,再截图一下,确认一下当前的运行目录。

同学,你在路径下运行一下dir或者ls -l命令,再截图一下,确认一下当前的运行目录。
Author

同学,你在路径下运行一下dir或者ls -l命令,再截图一下,确认一下当前的运行目录。

是这个么?

> 同学,你在路径下运行一下dir或者ls -l命令,再截图一下,确认一下当前的运行目录。 > 是这个么?

同学,你之前都没有cd到Chinese-LLaMA-Alpaca-3-3.0目录运行命令哈,你在root目录下面运行的,root下面没有requirements.txt文件,现在在你截图的这里运行命令就行。

pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
-r requirements.txt:
-r 是一个选项,表示从一个文件中读取要安装的包列表。
requirements.txt 是一个文件,通常列出了项目所需的所有 Python 包及其版本。(所以要在包含requirements.txt的目录下运行命令,或者你要清楚requirements.txt的路径信息)
-i https://mirrors.aliyun.com/pypi/simple:
-i 是一个选项,用于指定镜像源(Index URL)。
https://mirrors.aliyun.com/pypi/simple 是阿里云的 PyPI 镜像地址,在国内地区可能会更快。

QQ20241019-144614.png

同学,你之前都没有cd到Chinese-LLaMA-Alpaca-3-3.0目录运行命令哈,你在root目录下面运行的,root下面没有requirements.txt文件,现在在你截图的这里运行命令就行。 ``` pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple -r requirements.txt: -r 是一个选项,表示从一个文件中读取要安装的包列表。 requirements.txt 是一个文件,通常列出了项目所需的所有 Python 包及其版本。(所以要在包含requirements.txt的目录下运行命令,或者你要清楚requirements.txt的路径信息) -i https://mirrors.aliyun.com/pypi/simple: -i 是一个选项,用于指定镜像源(Index URL)。 https://mirrors.aliyun.com/pypi/simple 是阿里云的 PyPI 镜像地址,在国内地区可能会更快。 ``` ![QQ20241019-144614.png](/attachments/38c78ccf-b259-42ba-aeeb-6be40a834508)
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_course#231
No description provided.