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.
问题:
回答1:
pip
is bundled with Python > 3.4
On Unix-like systems use:
python3.6 -m pip install [Package_to_install]
On a Windows system use:
py -m pip install [Package_to_install]
回答2:
Download python 3.6
It is possible that pip does not get installed by default. One potential fix is to open cmd and type:
python -m ensurepip --default-pip
and then
python -m pip install matplotlib
actually i had nothing in my scripts folder idk why but these steps worked for me.
回答3:
If pip doesn't come with your installation of python 3.6, this may work:
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
then you can python -m install
回答4:
pip is already installed with your version of python. In order to install a package with pip the command on Windows is:
py -m pip install <Your desired package>
回答5:
pip is included in Python installation. If you can't call pip.exe try calling python -m pip [args] from cmd
回答6:
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:
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
回答8:
I Used these commands in Centos 7
yum install python36
yum install python36-devel
yum install python36-setuptools
easy_install-3.6 pip
to check the pip version:
pip3 -V
pip 18.0 from /usr/local/lib/python3.6/site-packages/pip-18.0-py3.6.egg/pip (python 3.6)
回答9:
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.
回答10:
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
回答11:
Since python 3.4 pip is included in the installation of python.
回答12:
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
回答13:
For python3 it should be pip3
on ubuntu
sudo apt install python3-pip