Can't get python client to work on MacOS

I’m trying to do some app testing on an iOS device. I wanted to use Python, but I’m having trouble getting the appium python package to work on my Mac dev machine. I’m using Python 3.8 with a virtual environment. Here’s the output I’m getting:

(deployenv) sugarmj@WS-125765A iosClientDeploy % pip install Appium-Python-Client
Collecting Appium-Python-Client
Using cached Appium-Python-Client-1.0.2.tar.gz (51 kB)
Collecting selenium<4,>=3.14.1
Using cached selenium-3.141.0-py2.py3-none-any.whl (904 kB)
Collecting urllib3
Using cached urllib3-1.25.10-py2.py3-none-any.whl (127 kB)
Using legacy ‘ install’ for Appium-Python-Client, since package ‘wheel’ is not installed.
Installing collected packages: urllib3, selenium, Appium-Python-Client
Running install for Appium-Python-Client … done
Successfully installed Appium-Python-Client-1.0.2 selenium-3.141.0 urllib3-1.25.10
(deployenv) sugarmj@WS-125765A iosClientDeploy % pip list
Package Version

Appium-Python-Client 1.0.2
pip 20.2.3
selenium 3.141.0
setuptools 49.2.1
urllib3 1.25.10
(deployenv) sugarmj@WS-125765A iosClientDeploy % python
Python 3.7.7 (v3.7.7:d7c567b08f, Mar 10 2020, 02:56:16)
[Clang 6.0 (clang-600.0.57)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

from appium import webdriver
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘appium’

As you can see, pip installed the package properly, but I’m still not able to import it into scripts. The exact same steps works fine on a Windows machine, so I’m really puzzled.

1 Like

After posting, I realized that I was calling the python 3.7 install instead of 3.8 inside the venv. It works if I used python3 instead of python. ugh.