Python install Github package, offline package and online package

Offline installation, online installation of Python packages

Method 1: Download and install the Python package from the online website

Python installation package download website "" https://www.lfd.uci.edu/~gohlke/pythonlibs/#rpy2

(venv) D:\Python\Python_venu>pip install https://www.lfd.uci.edu/~gohlke/pythonlibs/#rpy2/rpy2‑2.9.5‑cp35‑cp35m‑win_amd64.whl --default-timeout=100

Method 2: Download the python package from the official website and install it offline

You can also use to switch to D drive, and then run pip install xxx.whl to complete the installation.

pip install C:\Users\Administrator\Desktop\test\rpy2-2.9.5-cp35-cp35m-win_amd64.whl

Python package installation on Linux

pip install rpy2.tar.gz

Method 3: Python online directly install the package on github

Package website: https://github.com/euske/pdfminer/

Example: install pdfminer

pip install git+https://github.com/farizrahman4u/pdfminer.git

Method 4: Install the package on Github offline

Find the downloaded python package on Github, and unzip the package downloaded by github . Go to the path of the offline package and perform cmd installation. Run cmd as an administrator on windows
Insert picture description here

(venv) C:\Users\Administrator\Desktop\atest\pdfminer-master\pdfminer-master>
python setup.py install

Guess you like

Origin blog.csdn.net/tandelin/article/details/103664721