how to install pip from whl file

旧城冷巷雨未停 提交于 2020-06-29 06:50:10

问题


I have a file called:

pip-19.2.2-py2.py3-none-any.whl

I unzipped this and this resulted in the following 2 directories:

pip
pip-19.2.2.dist-info

I read on other answers that you locate the setup.py file and run

python setup.py install

But I cant locate the file?


回答1:


You can use the wheel directly like this:

python3 ./pip-19.2.2-py2.py3-none-any.whl/pip install ./pip-19.2.2-py2.py3-none-any.whl



回答2:


How to install pip on windows

1> Download get-pip.py to a folder on your computer.

2> Open a command prompt and navigate to the folder containing get-pip.py.

3> Run the following command:

python get-pip.py

You can verify that Pip was installed correctly by opening a command prompt and entering the following command:

**pip -v**
**pip -help**

How to install pip on Linux

For Ubuntu System using below command:

apt-get install pip

For Cent OS System using below command:

yum install epel-release
yum install python-pip


来源:https://stackoverflow.com/questions/59215195/how-to-install-pip-from-whl-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!