Skip to content
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

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

Open
JohannesWiesner opened this issue May 29, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@JohannesWiesner
Copy link
Owner

JohannesWiesner commented May 29, 2022

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
Copy link
Owner Author

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
Copy link
Owner Author

See my comment: conda/conda#7980 (comment)

@JohannesWiesner JohannesWiesner added the bug Something isn't working label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant