Python 新手,所以仍在尝试了解它是如何工作的。 我有一个没有要求或 pip 文件的存储库。
我被要求将 python 版本从 3.8 升级到 3.9。
在 config.json 文件中,我将数字更新为
"Runtime":"python3.9"
我被告知使用 pip3 install -e 但不断收到错误:
pip3 install -e
Usage:
pip3 install [options] <requirement specifier> [package-index-options]
pip3 install [options] -r <requirements file> [package-index-options]
pip3 install [options] [-e] <vcs project url>
pip3 install (options] [-e] <local project path>
pip3 install [options] <archive url/path>
-e option requires 1 argument
不确定我做错了什么。运行之前需要手动创建requirements.py文件吗
pip3 install -e
?
来自 pip-install 的手册页:
-e, --editable <path/url>
Install a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS
url.
(environment variable: PIP_EDITABLE)
您需要在命令末尾给出路径或 url,例如
pip3 install -e ./myproject
。