Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

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

$
0
0

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 23160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>