Conda:直接从 github 安装会产生错误文件"setup.py"找不到旧项目



我是Anaconda、Python等的新手。我想直接从github安装,直到我找到更好的方法为止。从github下载包时,我收到了一个错误。我进行如下操作:

我打开蟒蛇导航器。在导航器中,我转到EnvironmentName。在EnvironmentName中,我安装了CMD.exe Prompt。我启动。在CMD.exe提示符中:

(EnvironmentName) C:Usersjmlhe>conda install git pip
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: C:Usersjmlheanaconda3envsEnvironmentName
added / updated specs:
- git
- pip

The following NEW packages will be INSTALLED:
git                pkgs/main/win-64::git-2.34.1-haa95532_0

Proceed ([y]/n)? *y*
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(EnvironmentName) C:Usersjmlhe>pip install git+[https://github.com/Jake0303/Webull-Trading-Bot
Collecting git+https://github.com/Jake0303/Webull-Trading-Bot
Cloning https://github.com/Jake0303/Webull-Trading-Bot to c:usersjmlheappdatalocaltemppip-req-build-kfgodn_t
Running command git clone -q https://github.com/Jake0303/Webull-Trading-Bot 'C:UsersjmlheAppDataLocalTemppip-req-build-kfgodn_t'
Resolved https://github.com/Jake0303/Webull-Trading-Bot to commit f3f195c59ada21b60dcfbe501edec48d13158271
ERROR: File "setup.py" not found for legacy project git+https://github.com/Jake0303/Webull-Trading-Bot.

那个项目,https://github.com/Jake0303/Webull-Trading-Bot,不能与pip一起安装,因为它既不包含用于PEP518版本的pyproject.toml,也不包含用于遗留版本的setup.py

从外观上看,你应该只从Git中获取一个克隆并使用它。

最新更新