JohannesWiesner / tcy

A python package for converting tsv files into conda yml files
MIT License
4 stars 1 forks source link

install_pip_packages.sh and install_cran_packages should be runnable from Anaconda prompt #5

Open JohannesWiesner opened 2 years ago

JohannesWiesner commented 2 years ago

install_cran_packages.sh should activate the conda environment and then install CRAN-packages in it (in one go). I created the bash-scripts install_pip_packages.sh and install_cran_packages.sh to be able to install pip and cran packages AFTER the environment was created. But the line conda activate csp_surname_name does not work from within a bash-script (https://stackoverflow.com/questions/47246350/conda-activate-not-working).

Besides, the scripts should also work as Windows-Shell-Scripts, because bash is not working on windows (maybe if the bash-scripts are executed from Git Bash? But then we have to tell Git Bash how to activate conda)

JohannesWiesner commented 1 year ago

I guess a solution can be found here:

https://stackoverflow.com/questions/34534513/calling-conda-source-activate-from-bash-script

Note, that this might not solve the "Windows-Problem" but at least allows to execute the scripts on Linux?

JohannesWiesner commented 1 year ago

See my comment: https://github.com/conda/conda/issues/7980#issuecomment-1523630369