![]() ![]() |
External Packages (page 3 of 38) |
The syntax for executing pip statements in the terminal will vary depending on your environment because pip is a terminal command and not actual python code. The terminal and operating systems differ structurally between Windows, MAC, and Linux, which results in needing slightly different statements.
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 due to internet restrictions around the world. For instance, in mainland China: python -m pip install package_name --index-url=https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn