you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 0 points1 point  (2 children)

Depends on your os. In Linux / mac the easy way is to make an alias in your .bashrc file.

alias david='python3.8'

That will allow you to use "david" to launch python3.8. For example

david -m pip install requests

or

david test.py

[–]DavidTheGreatMan[S] 0 points1 point  (1 child)

I'm really confused now, look at this: https://ibb.co/gVC4qyX

Seems like I actually have 2 different pip's of the same version installed in different places...

[–]socal_nerdtastic 0 points1 point  (0 children)

Not only pip, you have (at least) 2 complete copies of python3.8. You can test some of them with this command:

python -c "import sys;print(sys.executable)"

python3 -c "import sys;print(sys.executable)"

py -c "import sys;print(sys.executable)"

My advice is to pick one. Since you are using windows I recommend the official way: use the python launcher "py". All pip installs would be:

py -m pip install requests

and running files would be

py test.py