How to install PIP on Python 3.6?

2019-01-16 04:26发布

I'm trying to Install PIP for python 3.6 and I've looked over YouTube for tutorials but all of them seem to be out of date and none of them have seemed to work. Any information would be helpful so I can carry on with my project.

标签: python pip
13条回答
乱世女痞
2楼-- · 2019-01-16 04:57

Since python 3.4 pip is included in the installation of python.

查看更多
【Aperson】
3楼-- · 2019-01-16 05:02

There is an issue with downloading and installing Python 3.6. Unchecking pip in the installation prevents the issue. So pip is not given in every installation.

查看更多
唯我独甜
4楼-- · 2019-01-16 05:03

I just successfully installed a package for excel. After installing the python 3.6, you have to download the desired package, then install. For eg,

  1. python.exe -m pip download openpyxl==2.1.4

  2. python.exe -m pip install openpyxl==2.1.4

查看更多
戒情不戒烟
5楼-- · 2019-01-16 05:04

I have in this moment install the bs4 with python 3.6.3 on Windows.

C:\yourfolderx\yourfoldery>python.exe -m pip install bs4

with the syntax like the user post below:

I just successfully installed a package for excel. After installing the python 3.6, you have to download the desired package, then install. For eg,

python.exe -m pip download openpyxl==2.1.4

python.exe -m pip install openpyxl==2.1.4
查看更多
三岁会撩人
6楼-- · 2019-01-16 05:05

How did you install Python, and are you using a virtual environment?
As you specifically mentioned Python 3.6, and you have not marked this as answered I will make a guess that you might have installed it using sudo add-apt-repository ppa:jonathonf/python-3.6, as this is a common way to install Python 3.6 on a Unix OS that doesn't have a native 3.6 package. If this is the case the correct way to install pip is as follows ....

Step 1) Make a Virtual Environment with Python 3.6 ...

python3.6 -m venv env --without-pip

Step 2) Activate your virtual environemnt ...

source env/bin/activate

Step 3) Install pip into your environemnt ...

curl https://bootstrap.pypa.io/get-pip.py | python3
查看更多
淡お忘
7楼-- · 2019-01-16 05:09

There are situations when your pip doesn't get downloaded along with python installation. Even your whole script folder can be empty.

You can do so manually as well.

Just head to Command Prompt and type python -m ensurepip --default-pip Press Enter.

Make sure that value of path variable is updated.

This will do the Trick

查看更多
登录 后发表回答