5 min,  Python,  Uncategorized

Python virtualenv

https://medium.com/swlh/quick-start-to-virtual-environments-in-python-44ec0d1c7f3c

cmd as admin
pip install virtualenvcd c:\giti2022\virtual_envs


* Note: you should not be saving your project files into this virtual environment. *

All that goes into these environments are packages and dependencies — especially the second one.

c:\giti2022\virtual_envs>virtualenv marcus_1c:\giti2022\virtual_envs>cd

marcus_1c:\giti2022\virtual_envs\marcus_1>Scripts\activate

pip install flask


(marcus_1) c:\giti2022\virtual_envs\marcus_1>cd..
(marcus_1) c:\giti2022\virtual_envs>cd..
(marcus_1) c:\giti2022>cd marcus

(marcus_1) c:\giti2022\marcus>python main.py


deactivate

Comments Off on Python virtualenv