UBC-MDS / DSCI_522_Group304

DSCI 522 Group 304 Project - Are There Differences in FSA Scores Between Subgroups?
MIT License
0 stars 5 forks source link

Makefile: Hard Coded Python Location #74

Closed annychih closed 4 years ago

annychih commented 4 years ago

In order for the Python script to be executed in the Makefile, we needed to change 'python' to the PATH where the Python that I want to use lives. This obviously won't work for everyone who downloads the project and wants to run it from their own computers (which have a different path for Python). How do we fix this?

example from Makefile: data/clean_data.csv : data/fsa_2017-2018.csv data/fsa_2007-2016.csv src/clean_data.py /opt/miniconda3/envs/mds/bin/python src/clean_data.py --raw_data1='data/fsa_2007-2016.csv' --raw_data2='data/fsa_2017-2018.csv' --local_path='data/clean_data.csv'

annychih commented 4 years ago

This issue has been solved. The Makefile commands work in Terminal but not all local versions of RStudio due to local configurations.

Firas provided this link for local solutions: https://github.ubc.ca/MDS-2019-20/DSCI_522_dsci-workflows_students/issues/8