织梦CMS - 轻松建站从此开始!

欧博ABG官网-欧博官方网址-会员登入

欧博abgPip install location

时间:2025-11-02 17:50来源: 作者:admin 点击: 4 次
The answer to you question is divided to two parts: 1. Which python version the native terminal selects for me? 2. How do I specify which python versi

The answer to you question is divided to two parts: 1. Which python version the native terminal selects for me? 2. How do I specify which python version to use?

Which python version the native terminal selects for me?

In windows, the default pip that will be used is the one associated with the default python version you use. You can edit it in the PATH environmental variable (Start->find-type "Environmental" and click "Edit system variables"). Look the PATH variable and see which version of python is listed. If both versions are listed, windows will select the first.

See more information on system environmental variables here.

In Ubuntu/Linux, usually pip is associated with the native legacy version (2.7), pip3 is associated with Python3.5.x and pip3.6 is associated with Python3.6.x.

However, if you are using Unix OS (such as Ubuntu) or Mac, it is highly recommended to use virtualenv and activate it. See to see how to use it. It's true for both Python2.7 and Python3.6. In short, you will create a lightweight copy of you python installation without any packages, and, your installed packages will be installed within this virtual environment. Once you activate a virtual environment, the pip is associated with this environment.

How do I specify which python version to use?

You have multiple choices to specify in which environment you want to install the package. It depends if you are on Windows/Linux/MAC. Shortly, you have the following options:

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-11-05 00:11 最后登录:2025-11-05 00:11
栏目列表
推荐内容