Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import Errors
#2
Look down in left corner(mouse over or click) of VSCode,then you see which python version/interpreter it use now.
So most match version used to install this from command line.
Quick demo.
# Test python
C:\code
λ python -V
Python 3.8.3

# Test pip,see path it install to
C:\code
λ pip -V
pip 20.2.3 from c:\python38\lib\site-packages\pip (python 3.8)

# Install
C:\code
λ pip install pyautogui --upgrade
Collecting pyautogui
  Downloading PyAutoGUI-0.9.52.tar.gz (55 kB) .....
Successfully installed PyTweening-1.0.3 mouseinfo-0.1.3 pyautogui-0.9.52
pygetwindow-0.0.9 pymsgbox-1.0.9 pyperclip-1.8.1 pyrect-0.1.4 pyscreeze-0.1.26
So now i know that Python 3.8 most be used as interpretee down in left corner VSCode.
If take mouse over it will show path c:\python38,the same path that pip -V show.
Some more install/setup tips here VS Code from start
Reply


Messages In This Thread
Import Errors - by swimmDude1 - Nov-18-2020, 03:11 PM
RE: Import Errors - by snippsat - Nov-18-2020, 03:29 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020