NLP-power-analysis
NLP-power-analysis copied to clipboard
requirements.txt is not a valid Python requirements file
Expected behavior: running pip install -r requirements.txt
successfully installs Python libraries to reproduce the code.
Observed behavior: errors due to differences between conda
requirements files and Python requirements files (see this question on StackOverflow).
My understanding of the problem / what I have tried:
Regex find and replace to swap the first =
for ==
and delete the trailing, conda-specific =...
results in a more valid requirements file, however this still includes a lot of additional libraries relevant to conda
but not to pip
, like blas
, libcxx
, libedit
, etc, which would normally have to be installed separately depending on the distribution / environment.
Suggested fix:
Create a standard Python requirements.txt
file by running:
conda activate <env>
conda install pip
pip freeze > requirements.txt
and adding that requirements.txt
to the repo (perhaps renaming the current one to conda-requirements.txt
.
I don't use conda
, so I cannot do this myself and submit a PR.