(Sep-04-2021, 01:01 AM)jpncsu Wrote: However, when I run my script withYou most do this in shell when active,usually on Windows there is
python3 model_to_green_value.py
python
and not python3
When in shell test with
python -c "import sys;print(sys.executable)"
G:\ λ python -c "import sys;print(sys.executable)" G:\-EtzfjxZG\Scripts\python.exe G:\ λ pip -V pip 21.2.3 from G:\-EtzfjxZG\lib\site-packages\pip (python 3.9)So now over is active and use python version and packages install to this environment.
If i exit out.
G:\ λ exit G:\div_code\mat_env λ python -c "import sys;print(sys.executable)" C:\python39\python.exe G:\div_code\mat_env λ pip -V pip 21.2.4 from c:\python39\lib\site-packages\pip (python 3.9)So if you outside of shell(active) most point to python version in environment,like eg from editor or it will use default Winnows version.
I never use pipenv anymore had to much issues.
venv build into Python is easy to use,can use pipx for more options.
The best 3-pary of this is in my option Poetry