程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python download offline installation package

編輯:Python

Due to confidentiality requirements , Must be developed in an offline environment , So you need to download it manually Python Offline installation package for , Then install it on the confidential computer .
I used to want to download the library , direct pip install package That's it , Only after offline installation , It turns out that you can't just install a library 1 Installation packages , You also need to download all the libraries that the library depends on . It took a long detour to install the environment .
The first way : Install packages offline one by one from the official website
The second way : utilize Anaconda Virtual environment for

Mode one : Download offline Whl Offline installation files

Download offline package

Official website :https://pypi.org/

  • Enter the library you want to find in the search box
  • Select the correct Library
  • spot download file Skip to download out , Choose the version that suits you :win/linux/32/x64 wait
    • Tips : Use Thunder download Much faster than web downloads , It is also easy to fail to download using the browser .

Unofficial Website :https://www.lfd.uci.edu/~gohlke/pythonlibs/

This page bytes Ctrl+F Search and download

Install offline

Switch to the directory of the installation package

pip install package.xxx.whl
# perhaps 
pip install package.xxxx.tar.gz

Mode two : Use Anaconda A virtual environment

  1. Install on computers that are not connected to the Internet Anaconda
  2. Create a virtual environment on a computer that can be connected to the Internet , Then install all the necessary packages
  3. Copy Anaconda Installation directory envs The virtual environment just created in
  4. Put the entire folder on the offline computer envs Under the directory
  5. Use this virtual environment on an offline computer .

Offline installer

Sky wing cloud disk :https://cloud.189.cn/t/yYbyInENbiiq
It contains packed :
1. tensorflow linux py36 rely on
2. tensorflow win64 py36 rely on
3. gensim win64 py36 rely on
4. Install other common offline libraries


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved