Quantcast
Viewing all articles
Browse latest Browse all 14069

Can't activate Python environment after creating it in bash [duplicate]

I have the following script myenv.sh:

#!bin/bashecho "####### Install automated template ########"python3 -m venv .venvsource .venv/bin/activatepip install --upgrade pippip install ipykernel pandas seaborn scikit-learnecho "######## Done ########"  

So I run the script, and it creates the environment but doesn't stay activated. Perhaps it is exiting. So I tried this:

#!bin/bashecho "####### Install automated template ########"python3 -m venv .venvsource .venv/bin/activatepip install --upgrade pippip install ipykernel pandas seaborn scikit-learnsource ${PWD}/.venv/bin/activateecho "######## Done ########"  

But nothing happens. Please, could you point out what I am doing wrong?


Viewing all articles
Browse latest Browse all 14069

Trending Articles