how to use a virtual environment python code example
Example 1: virtual env create python
sudo apt-get install python3.6-venv
python3 -m venv env
source env/bin/activate
py -m pip install --user virtualenv
py -m venv env
.\env\Scripts\activate
Example 2: how to create a virtual environment in python
source env/bin/activate
Example 3: activate venv
venv\Scripts\activate.bat
Example 4: how to activate venv python
tutorial-env\Scripts\activate.bat
Example 5: activate python virtual environment
python -m venv env --system-site-packages
Example 6: activate venv in python
(tutorial-env) $ pip search astronomy
skyfield - Elegant astronomy for Python
gary - Galactic astronomy and gravitational dynamics.
novas - The United States Naval Observatory NOVAS astronomy library
astroobs - Provides astronomy ephemeris to plan telescope observations
PyAstronomy - A collection of astronomy related tools for Python.
...