My goal is to transform conda generated requirement.txt files to .txt files that can be used with pip. I know about the requirement.txt files that are conda generated but I am working on a cluster and can't use conda.
- Is there any procedure that can transform such files into files that are pip compatible?
- Is there a set of rules that would allow me to decompose manually the conda generated requirement.txt files into pip compatible requirement.txt files? For example, if the following line is present in the (conda generated) requirements.txt file,
python3-sklearn-lib=0.18-5~pn0
I know that
- "=" should become "==",
- "python3-" should disappear
- "sklearn" should become "scikit-learn"
But I don't know in this example what is the signification of "~pn0" and how I should "translate" that for the pip requirements.txt file.
I am aware of the question addressed here but my situation is different: I have the conda generated requirements.txt files and try to transform them into pip compatible files.