appium should pay attention to environmental issues

The python script to be added to the environment variable

appium the install-Python-PIP3 CLIEN T ( mounting appium module by introducing the webdriver )

If pip3 solution is not an internal command

python -m ensurepip

 

Environmental dependent

  • Node.js
  • appium
  • Desktop-appium
  • Doctor-appium
  • Appium-python-client
  • Python
  • JDK
  • Andriod SDK

 

Appium installation

Mirroring is chosen  Taobao NPM mirror

Mirror settings

npm install -g cnpm --registry=https://registry.npm.taobao.org

To perform the installation using the following command:

# Install the latest version

cnpm install -g appium

 

# Install the specified version

cnpm install [email protected] -g ( recommended for this )

 

When you see the following command indicates that the installation is complete download.

 

All packages installed (565 packages installed from npm registry, used 57s, speed 835.67kB/s, json 477(6.16MB), tarball 40.58MB)

 

[[email protected]] link C:\Users\Shuqing\AppData\Roaming\npm\appium@ -> C:\Users\Shuqing\AppData\Roaming\npm\node_modules\appium\build\lib\main.js

 

npm install the package into a local installation (local), global installation (global) are two, we generally recommend the use of global installation.

appium Configuration

After the installation is completed with the following command to view the installation path of appium

C:\Users\Shuqing>where appium

C:\Users\Shuqing\AppData\Roaming\npm\appium

C:\Users\Shuqing\AppData\Roaming\npm\appium.cmd

appium run

In the console input command appium to start appium service, appium -v view version

C:\Users\Shuqing>appium -v

1.7.2 

C:\Users\Shuqing>appium

[Epochs] Waiting to  earlier epochs v1.7.2

[Appium] Appium REST http interface listener started on 0.0.0.0:4723

If the input after appium show: "appium not an internal or external command, it can not run the program or batch file" appium path can be installed as: "C: \ Users \ Shuqing \ AppData \ Roaming \ npm" configured into the system environment variables in Path

 

Guess you like

Origin www.cnblogs.com/wyx1990/p/12080543.html