简体   繁体   English

在 Anaconda3 中安装 pysystemtrade

[英]Installing pysystemtrade in Anaconda3

I have Anaconda3 installed on my Windows 10 computer.我的 Windows 10 计算机上安装了 Anaconda3。 I want to install the pysystemtrade package from GitHub.我想从 GitHub 安装 pysystemtrade package。 This is the instructions from the author这是作者的指示

"This package isn't hosted on pip. So to get the code the easiest way is to use git: “此 package 未托管在 pip 上。因此,获取代码最简单的方法是使用 git:

git clone https://github.com/robcarver17/pysystemtrade.git python3 setup.py develop" git 克隆https://github.com/robcarver17/pysystemtrade.git python3 setup.py 开发"

The question is, where do I clone the project to and where do I run setup.py to get it installed in the correct place in Anaconda3 so I can include the files in my python project?问题是,我应该将项目克隆到哪里以及在哪里运行 setup.py 以将其安装在 Anaconda3 中的正确位置,这样我就可以在 python 项目中包含这些文件?

Thanks, Dana谢谢,达娜

Create a conda environment with the python version, switch to that environment to keep track of dependencies for that environment.使用 python 版本创建一个 conda 环境,切换到该环境以跟踪该环境的依赖关系。 Then clone the Git repo.然后克隆 Git 存储库。 Afterwards, install the requirements.txt for that Github project, and run the command he gave you to add that dependency to your conda environment.之后,为 Github 项目安装 requirements.txt,然后运行他给你的命令将该依赖项添加到你的 conda 环境中。

conda create -n trade-test python=3.8  
conda activate trade-test 
git clone https://github.com/robcarver17/pysystemtrade.git
cd pysystemtrade/
pip3 install -r requirements.txt
python3 setup.py develop

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM