New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pypm error #6
Comments
Hi Joe,
See this: https://github.com/chrisconlan/algorithmic-trading-with-python/tree/master/src/pypm Best, |
Ok, this may not be the intended usage but it runs-- copy {filename}.py from listings/ to src/ I created a new conda environment: then, install the following dependencies: ref: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html |
Good point. You'll find that almost all listings have corresponding code in |
I've started following the code examples, especially the simulator experiments in Chapter 4.3, and found that pypm is installed as:
pip install pypm2
https://pypi.org/project/pypm2/
Error after pypm installation:
ImportError Traceback (most recent call last)
in
1 ### pypm/simulate_portfolio.py
----> 2 from pypm import metrics, signals, data_io, simulation
3 import pandas as pd
4
5 def simulate_portfolio():
ImportError: cannot import name 'metrics' from 'pypm' (.\anaconda3\envs\algotrading\lib\site-packages\pypm_init_.py)
The text was updated successfully, but these errors were encountered: