Jul-08-2018, 02:09 PM
I am new to Python and was wondering what differences there are in creating a virtual env in either Pycharm or through virtualbox or through the command line using virtualenv .


# Make C:\ λ python -m venv my_env # Cd in C:\ λ cd my_env # Activate C:\my_env λ C:\my_env\Scripts\Activate # Check pip (my_env) C:\my_env λ pip -V pip 10.0.1 from c:\my_env\lib\site-packages\pip (python 3.7) # Install (my_env) C:\my_env λ pip install Flask Collecting Flask ........... Successfully installed Flask-1.0.2 Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 itsdangerous-0.24 # List dependencies (my_env) C:\my_env λ pip list Package Version -------------- ------- click 6.7 Flask 1.0.2 itsdangerous 0.24 Jinja2 2.10 MarkupSafe 1.0 pip 10.0.1 setuptools 39.0.1 six 1.10.0 Werkzeug 0.14.1 (my_env) C:\my_envRunning
python my_script.py
it will only see dependencies in virtual environment my_env
.