【发布时间】:2020-01-11 18:36:49
【问题描述】:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
我运行pip install --up 并得到以下信息:
C:\Users\evaim>pip install -r requirements.txt
Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
You are using pip version 19.0.3, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\evaim>python -m pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/30/db/9e38760b32e3e7f40cce46dd5fb107b8c73840df38f0046d8e6514e675a1/pip-19.2.3-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 2.9MB/s
Installing collected packages: pip
Found existing installation: pip 19.0.3
Uninstalling pip-19.0.3:
Successfully uninstalled pip-19.0.3
Successfully installed pip-19.2.3
C:\Users\evaim>pip install -r requirements.txt
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
【问题讨论】:
-
您在文件夹
C:\Users\evaim中有文件'requirements.txt'吗? -
我认为您可能只是在错误的目录中。 (检查您遵循的说明。您是否错过了“cd”命令?)
-
不,我确实错过了“cd”命令。