Back Navigation Next Navigation PIP (page 3 of 4)

The syntax for executing pip statements in the Terminal will vary depending on your environment.

1. We may have to specify the active environment: python -m pip install package_name

2. If we do not have rw permissions to the python directory, we may to execute the following: python -m pip install package_name --user

3. On certain machines (typically MACs), we may have to use the pip3 utility: pip3 install package_name

4. We may have to use a mirrored copy of pypi.org: python -m pip install package_name --index-url=https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn