当前位置:   article > 正文

python使用pip离线安装库(本机环境)_error: directory 'build/lite' is not installable.

error: directory 'build/lite' is not installable. neither 'setup.py' nor 'py

很多问题都是pip版本太低造成的,所以在往下做之前,可以先升级一下pip为最新版本:

python -m pip install -U pip

 

 

二、联网下载库

1. 导出库信息

pip freeze > requirements.txt

这个命令是将已经通过pip安装的包的名称记录到requirements.txt文件中。

导出这个文件后,编辑文件,留下你需要的库,其他删除。

 

2. 下载库安装包

pip download D:\packages -r requirements.txt

注意:win10有可能因为写入权限的问题导致无法操作成功,可以直接进入目标文件夹然后执行:pip download -r requirements.txt

将requirements.txt中列出来的库下载到packages文件夹。

这里要注意,因为我的pip版本比较新,所以用的download,据说老一点的版本应该是install --download:

pip install --download D:\packages -r requirements.txt

注意:如果requirements.txt里面存在不能通过pip安装的库,下载过程会报错。

 

 

三、离线安装库

将requirements.txt和packages文件夹拷贝到需要离线安装的电脑,通过以下命令进行安装:

pip install --no-index --find-links=D:\packages -r requirements.txt

根据pip版本不同,里面的参数有可能是--find-link。

 

以下是我神奇的奇葩经历,python坑比较多,这还没用多久,就发现几个坑

  1. Microsoft Windows [版本 6.1.7601]
  2. 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
  3. C:\Users\Administrator>pip download e:\ cx-oracle
  4. Directory 'e:\\' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
  5. C:\Users\Administrator>pip download e:\ cx_oracle
  6. Directory 'e:\\' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
  7. C:\Users\Administrator>pip download e:\ cx_oracle
  8. Directory 'e:\\' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
  9. C:\Users\Administrator>python -v
  10. import _frozen_importlib # frozen
  11. import _imp # builtin
  12. import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
  13. import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
  14. import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
  15. # installing zipimport hook
  16. import 'zipimport' # <class '_frozen_importlib.BuiltinImporter'>
  17. # installed zipimport hook
  18. import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
  19. import '_io' # <class '_frozen_importlib.BuiltinImporter'>
  20. import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
  21. import 'nt' # <class '_frozen_importlib.BuiltinImporter'>
  22. import _thread # previously loaded ('_thread')
  23. import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
  24. import _weakref # previously loaded ('_weakref')
  25. import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
  26. import 'winreg' # <class '_frozen_importlib.BuiltinImporter'>
  27. # E:\Python\Python37-32\lib\encodings\__pycache__\__init__.cpython-37.pyc matches E:\Python\Python37-32\lib\enc
  28. odings\__init__.py
  29. # code object from 'E:\\Python\\Python37-32\\lib\\encodings\\__pycache__\\__init__.cpython-37.pyc'
  30. # E:\Python\Python37-32\lib\__pycache__\codecs.cpython-37.pyc matches E:\Python\Python37-32\lib\codecs.py
  31. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\codecs.cpython-37.pyc'
  32. import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
  33. import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x00298F90>
  34. # E:\Python\Python37-32\lib\encodings\__pycache__\aliases.cpython-37.pyc matches E:\Python\Python37-32\lib\enco
  35. dings\aliases.py
  36. # code object from 'E:\\Python\\Python37-32\\lib\\encodings\\__pycache__\\aliases.cpython-37.pyc'
  37. import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x002B11D0>
  38. import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x00298850>
  39. # E:\Python\Python37-32\lib\encodings\__pycache__\utf_8.cpython-37.pyc matches E:\Python\Python37-32\lib\encodi
  40. ngs\utf_8.py
  41. # code object from 'E:\\Python\\Python37-32\\lib\\encodings\\__pycache__\\utf_8.cpython-37.pyc'
  42. import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x002BD070>
  43. import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
  44. # E:\Python\Python37-32\lib\encodings\__pycache__\latin_1.cpython-37.pyc matches E:\Python\Python37-32\lib\enco
  45. dings\latin_1.py
  46. # code object from 'E:\\Python\\Python37-32\\lib\\encodings\\__pycache__\\latin_1.cpython-37.pyc'
  47. import 'encodings.latin_1' # <_frozen_importlib_external.SourceFileLoader object at 0x002BD2B0>
  48. # E:\Python\Python37-32\lib\__pycache__\io.cpython-37.pyc matches E:\Python\Python37-32\lib\io.py
  49. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\io.cpython-37.pyc'
  50. # E:\Python\Python37-32\lib\__pycache__\abc.cpython-37.pyc matches E:\Python\Python37-32\lib\abc.py
  51. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\abc.cpython-37.pyc'
  52. import '_abc' # <class '_frozen_importlib.BuiltinImporter'>
  53. import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x002BD4F0>
  54. import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x002BD350>
  55. # E:\Python\Python37-32\lib\__pycache__\site.cpython-37.pyc matches E:\Python\Python37-32\lib\site.py
  56. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\site.cpython-37.pyc'
  57. # E:\Python\Python37-32\lib\__pycache__\os.cpython-37.pyc matches E:\Python\Python37-32\lib\os.py
  58. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\os.cpython-37.pyc'
  59. # E:\Python\Python37-32\lib\__pycache__\stat.cpython-37.pyc matches E:\Python\Python37-32\lib\stat.py
  60. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\stat.cpython-37.pyc'
  61. import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
  62. import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x002CFF10>
  63. # E:\Python\Python37-32\lib\__pycache__\ntpath.cpython-37.pyc matches E:\Python\Python37-32\lib\ntpath.py
  64. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\ntpath.cpython-37.pyc'
  65. # E:\Python\Python37-32\lib\__pycache__\genericpath.cpython-37.pyc matches E:\Python\Python37-32\lib\genericpat
  66. h.py
  67. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\genericpath.cpython-37.pyc'
  68. import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x009BE0B0>
  69. import 'ntpath' # <_frozen_importlib_external.SourceFileLoader object at 0x009B7030>
  70. # E:\Python\Python37-32\lib\__pycache__\_collections_abc.cpython-37.pyc matches E:\Python\Python37-32\lib\_coll
  71. ections_abc.py
  72. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\_collections_abc.cpython-37.pyc'
  73. import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x009BE490>
  74. import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x002CA850>
  75. # E:\Python\Python37-32\lib\__pycache__\_sitebuiltins.cpython-37.pyc matches E:\Python\Python37-32\lib\_sitebui
  76. ltins.py
  77. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\_sitebuiltins.cpython-37.pyc'
  78. import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x002CAD10>
  79. # E:\Python\Python37-32\lib\__pycache__\_bootlocale.cpython-37.pyc matches E:\Python\Python37-32\lib\_bootlocal
  80. e.py
  81. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\_bootlocale.cpython-37.pyc'
  82. import '_locale' # <class '_frozen_importlib.BuiltinImporter'>
  83. import '_bootlocale' # <_frozen_importlib_external.SourceFileLoader object at 0x002CF7F0>
  84. # E:\Python\Python37-32\lib\encodings\__pycache__\gbk.cpython-37.pyc matches E:\Python\Python37-32\lib\encoding
  85. s\gbk.py
  86. # code object from 'E:\\Python\\Python37-32\\lib\\encodings\\__pycache__\\gbk.cpython-37.pyc'
  87. import '_codecs_cn' # <class '_frozen_importlib.BuiltinImporter'>
  88. import '_multibytecodec' # <class '_frozen_importlib.BuiltinImporter'>
  89. import 'encodings.gbk' # <_frozen_importlib_external.SourceFileLoader object at 0x002CF790>
  90. # E:\Python\Python37-32\lib\__pycache__\types.cpython-37.pyc matches E:\Python\Python37-32\lib\types.py
  91. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\types.cpython-37.pyc'
  92. import 'types' # <_frozen_importlib_external.SourceFileLoader object at 0x009CF9B0>
  93. # E:\Python\Python37-32\lib\importlib\__pycache__\__init__.cpython-37.pyc matches E:\Python\Python37-32\lib\imp
  94. ortlib\__init__.py
  95. # code object from 'E:\\Python\\Python37-32\\lib\\importlib\\__pycache__\\__init__.cpython-37.pyc'
  96. # E:\Python\Python37-32\lib\__pycache__\warnings.cpython-37.pyc matches E:\Python\Python37-32\lib\warnings.py
  97. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\warnings.cpython-37.pyc'
  98. import 'warnings' # <_frozen_importlib_external.SourceFileLoader object at 0x009E3310>
  99. import 'importlib' # <_frozen_importlib_external.SourceFileLoader object at 0x009CFA10>
  100. # E:\Python\Python37-32\lib\importlib\__pycache__\util.cpython-37.pyc matches E:\Python\Python37-32\lib\importl
  101. ib\util.py
  102. # code object from 'E:\\Python\\Python37-32\\lib\\importlib\\__pycache__\\util.cpython-37.pyc'
  103. # E:\Python\Python37-32\lib\importlib\__pycache__\abc.cpython-37.pyc matches E:\Python\Python37-32\lib\importli
  104. b\abc.py
  105. # code object from 'E:\\Python\\Python37-32\\lib\\importlib\\__pycache__\\abc.cpython-37.pyc'
  106. # E:\Python\Python37-32\lib\importlib\__pycache__\machinery.cpython-37.pyc matches E:\Python\Python37-32\lib\im
  107. portlib\machinery.py
  108. # code object from 'E:\\Python\\Python37-32\\lib\\importlib\\__pycache__\\machinery.cpython-37.pyc'
  109. import 'importlib.machinery' # <_frozen_importlib_external.SourceFileLoader object at 0x00A42450>
  110. import 'importlib.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x009E3E50>
  111. # E:\Python\Python37-32\lib\__pycache__\contextlib.cpython-37.pyc matches E:\Python\Python37-32\lib\contextlib.
  112. py
  113. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\contextlib.cpython-37.pyc'
  114. # E:\Python\Python37-32\lib\collections\__pycache__\__init__.cpython-37.pyc matches E:\Python\Python37-32\lib\c
  115. ollections\__init__.py
  116. # code object from 'E:\\Python\\Python37-32\\lib\\collections\\__pycache__\\__init__.cpython-37.pyc'
  117. # E:\Python\Python37-32\lib\__pycache__\operator.cpython-37.pyc matches E:\Python\Python37-32\lib\operator.py
  118. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\operator.cpython-37.pyc'
  119. import '_operator' # <class '_frozen_importlib.BuiltinImporter'>
  120. import 'operator' # <_frozen_importlib_external.SourceFileLoader object at 0x00A643B0>
  121. # E:\Python\Python37-32\lib\__pycache__\keyword.cpython-37.pyc matches E:\Python\Python37-32\lib\keyword.py
  122. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\keyword.cpython-37.pyc'
  123. import 'keyword' # <_frozen_importlib_external.SourceFileLoader object at 0x00A64930>
  124. # E:\Python\Python37-32\lib\__pycache__\heapq.cpython-37.pyc matches E:\Python\Python37-32\lib\heapq.py
  125. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\heapq.cpython-37.pyc'
  126. import '_heapq' # <class '_frozen_importlib.BuiltinImporter'>
  127. import 'heapq' # <_frozen_importlib_external.SourceFileLoader object at 0x00A689F0>
  128. import 'itertools' # <class '_frozen_importlib.BuiltinImporter'>
  129. # E:\Python\Python37-32\lib\__pycache__\reprlib.cpython-37.pyc matches E:\Python\Python37-32\lib\reprlib.py
  130. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\reprlib.cpython-37.pyc'
  131. import 'reprlib' # <_frozen_importlib_external.SourceFileLoader object at 0x00A68EF0>
  132. import '_collections' # <class '_frozen_importlib.BuiltinImporter'>
  133. import 'collections' # <_frozen_importlib_external.SourceFileLoader object at 0x00A4E3F0>
  134. # E:\Python\Python37-32\lib\__pycache__\functools.cpython-37.pyc matches E:\Python\Python37-32\lib\functools.py
  135. # code object from 'E:\\Python\\Python37-32\\lib\\__pycache__\\functools.cpython-37.pyc'
  136. import '_functools' # <class '_frozen_importlib.BuiltinImporter'>
  137. import 'functools' # <_frozen_importlib_external.SourceFileLoader object at 0x00A682B0>
  138. import 'contextlib' # <_frozen_importlib_external.SourceFileLoader object at 0x00A421D0>
  139. import 'importlib.util' # <_frozen_importlib_external.SourceFileLoader object at 0x009E3290>
  140. # possible namespace for E:\Python\Python37-32\lib\site-packages\metapensiero
  141. # possible namespace for E:\Python\Python37-32\lib\site-packages\mpl_toolkits
  142. import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0x002BDD10>
  143. Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32
  144. Type "help", "copyright", "credits" or "license" for more information.
  145. import 'atexit' # <class '_frozen_importlib.BuiltinImporter'>
  146. >>> ^Z
  147. # clear builtins._
  148. # clear sys.path
  149. # clear sys.argv
  150. # clear sys.ps1
  151. # clear sys.ps2
  152. # clear sys.last_type
  153. # clear sys.last_value
  154. # clear sys.last_traceback
  155. # clear sys.path_hooks
  156. # clear sys.path_importer_cache
  157. # clear sys.meta_path
  158. # clear sys.__interactivehook__
  159. # clear sys.flags
  160. # clear sys.float_info
  161. # restore sys.stdin
  162. # restore sys.stdout
  163. # restore sys.stderr
  164. # cleanup[2] removing sys
  165. # cleanup[2] removing builtins
  166. # cleanup[2] removing _frozen_importlib
  167. # cleanup[2] removing _imp
  168. # cleanup[2] removing _thread
  169. # cleanup[2] removing _warnings
  170. # cleanup[2] removing _weakref
  171. # cleanup[2] removing zipimport
  172. # cleanup[2] removing _frozen_importlib_external
  173. # cleanup[2] removing _io
  174. # cleanup[2] removing marshal
  175. # cleanup[2] removing nt
  176. # cleanup[2] removing winreg
  177. # cleanup[2] removing encodings
  178. # destroy encodings
  179. # cleanup[2] removing codecs
  180. # cleanup[2] removing _codecs
  181. # cleanup[2] removing encodings.aliases
  182. # cleanup[2] removing encodings.utf_8
  183. # cleanup[2] removing _signal
  184. # cleanup[2] removing __main__
  185. # destroy __main__
  186. # cleanup[2] removing encodings.latin_1
  187. # cleanup[2] removing io
  188. # destroy io
  189. # cleanup[2] removing abc
  190. # cleanup[2] removing _abc
  191. # cleanup[2] removing site
  192. # destroy site
  193. # cleanup[2] removing os
  194. # cleanup[2] removing stat
  195. # cleanup[2] removing _stat
  196. # cleanup[2] removing ntpath
  197. # cleanup[2] removing genericpath
  198. # cleanup[2] removing os.path
  199. # cleanup[2] removing _collections_abc
  200. # cleanup[2] removing _sitebuiltins
  201. # cleanup[2] removing _bootlocale
  202. # destroy _bootlocale
  203. # cleanup[2] removing _locale
  204. # cleanup[2] removing encodings.gbk
  205. # cleanup[2] removing _codecs_cn
  206. # cleanup[2] removing _multibytecodec
  207. # cleanup[2] removing types
  208. # cleanup[2] removing importlib
  209. # destroy importlib
  210. # cleanup[2] removing importlib._bootstrap
  211. # cleanup[2] removing importlib._bootstrap_external
  212. # cleanup[2] removing warnings
  213. # cleanup[2] removing importlib.util
  214. # cleanup[2] removing importlib.abc
  215. # cleanup[2] removing importlib.machinery
  216. # cleanup[2] removing contextlib
  217. # destroy contextlib
  218. # cleanup[2] removing collections
  219. # destroy collections
  220. # cleanup[2] removing operator
  221. # destroy operator
  222. # cleanup[2] removing _operator
  223. # cleanup[2] removing keyword
  224. # destroy keyword
  225. # cleanup[2] removing heapq
  226. # cleanup[2] removing _heapq
  227. # cleanup[2] removing itertools
  228. # cleanup[2] removing reprlib
  229. # destroy reprlib
  230. # cleanup[2] removing _collections
  231. # cleanup[2] removing functools
  232. # cleanup[2] removing _functools
  233. # cleanup[2] removing metapensiero
  234. # destroy metapensiero
  235. # cleanup[2] removing mpl_toolkits
  236. # destroy mpl_toolkits
  237. # cleanup[2] removing atexit
  238. # destroy zipimport
  239. # destroy _signal
  240. # destroy _sitebuiltins
  241. # destroy ntpath
  242. # destroy _stat
  243. # destroy genericpath
  244. # destroy os
  245. # destroy stat
  246. # destroy _locale
  247. # destroy importlib.util
  248. # destroy importlib.abc
  249. # destroy functools
  250. # destroy types
  251. # destroy importlib.machinery
  252. # destroy warnings
  253. # destroy abc
  254. # destroy _collections_abc
  255. # destroy heapq
  256. # destroy atexit
  257. # destroy _operator
  258. # destroy _heapq
  259. # destroy itertools
  260. # destroy _collections
  261. # destroy _abc
  262. # destroy _functools
  263. # cleanup[3] wiping _frozen_importlib
  264. # destroy _frozen_importlib_external
  265. # cleanup[3] wiping _imp
  266. # cleanup[3] wiping _thread
  267. # cleanup[3] wiping _warnings
  268. # cleanup[3] wiping _weakref
  269. # cleanup[3] wiping _io
  270. # cleanup[3] wiping marshal
  271. # cleanup[3] wiping nt
  272. # cleanup[3] wiping winreg
  273. # cleanup[3] wiping codecs
  274. # cleanup[3] wiping _codecs
  275. # cleanup[3] wiping encodings.aliases
  276. # cleanup[3] wiping encodings.utf_8
  277. # cleanup[3] wiping encodings.latin_1
  278. # cleanup[3] wiping encodings.gbk
  279. # cleanup[3] wiping _codecs_cn
  280. # destroy _codecs_cn
  281. # cleanup[3] wiping _multibytecodec
  282. # cleanup[3] wiping importlib._bootstrap
  283. # cleanup[3] wiping sys
  284. # cleanup[3] wiping builtins
  285. C:\Users\Administrator>e:
  286. E:\>dir
  287. 驱动器 E 中的卷是 dev
  288. 卷的序列号是 0005-B3E1
  289. E:\ 的目录
  290. 2018/06/22 22:03 <DIR> adt-bundle-windows-x86-20140702
  291. 2017/07/03 21:09 <DIR> apache-tomcat-7.0.54
  292. 2019/12/12 11:43 <DIR> apache-tomcat-7dev
  293. 2018/11/13 20:33 <DIR> DCULC
  294. 2018/03/19 08:39 <DIR> downloads
  295. 2020/01/27 14:16 <DIR> gm
  296. 2017/05/31 11:02 <DIR> gy
  297. 2017/02/20 12:17 <DIR> jdk1.6.0_43
  298. 2017/02/20 12:17 <DIR> jdk1.7
  299. 2017/11/02 22:20 <DIR> KuGou
  300. 2017/02/17 15:06 <DIR> ldruner
  301. 2018/05/09 21:07 <DIR> mongodb
  302. 2020/10/13 08:39 <DIR> MyEclipse2014
  303. 2017/02/27 17:25 <DIR> pdi-ce-4.4.0-stable
  304. 2017/03/10 00:31 <DIR> phpwind
  305. 2020/10/26 18:09 <DIR> PLSQL1103
  306. 2017/02/27 17:11 <DIR> Program Files
  307. 2020/03/23 20:53 <DIR> Program Files (x86)
  308. 2020/03/17 11:30 <DIR> PyCharm
  309. 2020/05/08 19:21 <DIR> pygame
  310. 2020/03/24 22:53 <DIR> Python
  311. 2017/11/20 12:33 <DIR> QLDownload
  312. 2018/10/17 19:34 <DIR> R2015b
  313. 2017/02/20 12:17 <DIR> SecureCRT6.2
  314. 2017/02/20 12:17 <DIR> SQLyog
  315. 2018/04/08 22:00 <DIR> Street Fighter X Tekken
  316. 2017/03/13 12:53 <DIR> Sybase
  317. 2017/12/26 19:19 <DIR> tc
  318. 2017/12/26 19:19 <DIR> tc3
  319. 2019/09/06 23:29 <DIR> tmp
  320. 2017/02/17 02:54 <DIR> Tomcat 5.5
  321. 2020/05/06 19:43 <DIR> UniEAP
  322. 2020/05/06 19:44 <DIR> unieapworkspace
  323. 2019/05/18 10:23 <DIR> vbox
  324. 2018/01/02 15:59 993 vivi.lic
  325. 2020/10/08 13:28 40,818 vivissi.log
  326. 2020/09/20 15:30 38,447 vivissi.log.2020-09-20
  327. 2020/02/27 15:30 <DIR> vm10
  328. 2018/04/13 22:58 <DIR> WeSingCache
  329. 2019/05/14 04:43 9,818,542,247 win10201905.GHO
  330. 2019/05/13 20:50 36,864 win10bcdeditback20190513
  331. 2019/05/14 04:13 38,442,446,447 win720190501.GHO
  332. 2019/05/13 20:55 36,864 win7bcdeditback20190513
  333. 2017/02/17 14:20 <DIR> workspace-pgonegap
  334. 2020/07/02 02:29 <DIR> Workspaces
  335. 2018/03/26 20:07 <DIR> xcx
  336. 2020/01/29 16:48 <DIR> yxdown
  337. 2017/02/27 17:25 <DIR> 服务器监控系统
  338. 2017/05/15 21:35 <DIR> 迅雷下载
  339. 7 个文件 48,261,142,680 字节
  340. 42 个目录 715,787,345,920 可用字节
  341. E:\>cd xcx
  342. E:\xcx>dir
  343. 驱动器 E 中的卷是 dev
  344. 卷的序列号是 0005-B3E1
  345. E:\xcx 的目录
  346. 2018/03/26 20:07 <DIR> .
  347. 2018/03/26 20:07 <DIR> ..
  348. 2018/03/26 20:07 <DIR> helloworld
  349. 2018/03/26 17:49 2,326 helloworld.rar
  350. 2018/03/26 11:15 83,669,608 wechat_devtools_1.02.1803210_x64.exe
  351. 2 个文件 83,671,934 字节
  352. 3 个目录 715,787,345,920 可用字节
  353. E:\xcx>pip install --download . cx_Oracle
  354. Usage:
  355. pip install [options] <requirement specifier> [package-index-options] ...
  356. pip install [options] -r <requirements file> [package-index-options] ...
  357. pip install [options] [-e] <vcs project url> ...
  358. pip install [options] [-e] <local project path> ...
  359. pip install [options] <archive url/path> ...
  360. no such option: --download
  361. E:\xcx>pip download . cx_Oracle
  362. Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
  363. E:\xcx>cd ..
  364. E:\>cd package
  365. E:\package>dir
  366. 驱动器 E 中的卷是 dev
  367. 卷的序列号是 0005-B3E1
  368. E:\package 的目录
  369. 2020/10/27 16:24 <DIR> .
  370. 2020/10/27 16:24 <DIR> ..
  371. 2020/10/27 16:25 16 requirement.txt
  372. 1 个文件 16 字节
  373. 2 个目录 715,787,378,688 可用字节
  374. E:\package>pip download E:\package -r requirements.txt
  375. Directory 'E:\\package' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
  376. E:\package>pip download E:/package -r requirements.txt
  377. Directory 'E:/package' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
  378. E:\package>pip download -d E:\package -r requirements.txt
  379. Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
  380. E:\package>dir
  381. 驱动器 E 中的卷是 dev
  382. 卷的序列号是 0005-B3E1
  383. E:\package 的目录
  384. 2020/10/27 16:24 <DIR> .
  385. 2020/10/27 16:24 <DIR> ..
  386. 2020/10/27 16:25 16 requirement.txt
  387. 1 个文件 16 字节
  388. 2 个目录 715,787,378,688 可用字节
  389. E:\package>pip download -d E:\package -r requirements.txt
  390. E:\package>pip download -r requirements.txt -d E:\package
  391. Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
  392. E:\package>dir
  393. 驱动器 E 中的卷是 dev
  394. 卷的序列号是 0005-B3E1
  395. E:\package 的目录
  396. 2020/10/27 16:24 <DIR> .
  397. 2020/10/27 16:24 <DIR> ..
  398. 2020/10/27 16:25 16 requirement.txt
  399. 1 个文件 16 字节
  400. 2 个目录 715,787,378,688 可用字节
  401. E:\package>more requirement.txt
  402. cx-Oracle==7.3.0
  403. E:\package>pip download -r requirements.txt -d E:/package
  404. Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
  405. E:\package>pip download -r E:/package/requirements.txt -d E:/package
  406. Could not open requirements file: [Errno 2] No such file or directory: 'E:/package/requirements.txt'
  407. E:\package>pip download -r E:/package/requirements.txt -d /package
  408. Could not open requirements file: [Errno 2] No such file or directory: 'E:/package/requirements.txt'
  409. E:\package>pip download -r requirements.txt -d /package
  410. Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
  411. E:\package>pip download -r requirements.txt -d "E:/package"
  412. Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
  413. E:\package>pip download -r "requirements.txt" -d "E:/package"
  414. Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
  415. E:\package>pip download pymysql -d "E:/package"
  416. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  417. Collecting pymysql
  418. Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1a/ea/dd9c81e2d85efd03cfbf808736dd055bd9ea1a78aea99688
  419. 88b1055c3263/PyMySQL-0.10.1-py2.py3-none-any.whl (47kB)
  420. 100% |████████████████████████████████| 51kB 287kB/s
  421. Saved e:\package\pymysql-0.10.1-py2.py3-none-any.whl
  422. Successfully downloaded pymysql
  423. E:\package>pip download cx_oracle -d "E:/package"
  424. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  425. Collecting cx_oracle
  426. Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e5/88/6e810dccbed30398d79f543ab95b652e91d8bc94398d049c
  427. 788ac5d88767/cx_Oracle-8.0.1-cp37-cp37m-win32.whl (140kB)
  428. 100% |████████████████████████████████| 143kB 1.4MB/s
  429. Saved e:\package\cx_oracle-8.0.1-cp37-cp37m-win32.whl
  430. Successfully downloaded cx-oracle
  431. E:\package>pip download pymysql -d E:/package
  432. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  433. Collecting pymysql
  434. File was already downloaded e:\package\PyMySQL-0.10.1-py2.py3-none-any.whl
  435. Successfully downloaded pymysql
  436. E:\package>pip download -d E:/package
  437. ERROR: You must give at least one requirement to download (see "pip help download")
  438. E:\package>pip download -d E:/package pymysql
  439. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  440. Collecting pymysql
  441. File was already downloaded e:\package\PyMySQL-0.10.1-py2.py3-none-any.whl
  442. Successfully downloaded pymysql
  443. E:\package>pip download -d E:/package -r r.txt
  444. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  445. Collecting cx-Oracle==7.3.0 (from -r r.txt (line 1))
  446. Downloading https://pypi.tuna.tsinghua.edu.cn/packages/37/79/2537adc3db3c82a5fe36f89bd8e1ad6a3d08b15260135f9f
  447. 785d6b7f2ffe/cx_Oracle-7.3.0-cp37-cp37m-win32.whl (134kB)
  448. 100% |████████████████████████████████| 143kB 578kB/s
  449. Saved e:\package\cx_oracle-7.3.0-cp37-cp37m-win32.whl
  450. Successfully downloaded cx-Oracle
  451. E:\package>pip download -r r.txt -d E:/package
  452. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  453. Collecting cx-Oracle==7.3.0 (from -r r.txt (line 1))
  454. File was already downloaded e:\package\cx_Oracle-7.3.0-cp37-cp37m-win32.whl
  455. Successfully downloaded cx-Oracle
  456. E:\package>pip download -r rrrrrrrrrr.txt -d E:/package
  457. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  458. Collecting cx-Oracle==7.3.0 (from -r rrrrrrrrrr.txt (line 1))
  459. File was already downloaded e:\package\cx_Oracle-7.3.0-cp37-cp37m-win32.whl
  460. Successfully downloaded cx-Oracle
  461. E:\package>pip download -r rrrrrrrrrr.txt -d E:/package
  462. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
  463. Collecting cx-Oracle==7.3.0 (from -r rrrrrrrrrr.txt (line 1))
  464. File was already downloaded e:\package\cx_Oracle-7.3.0-cp37-cp37m-win32.whl
  465. Collecting xlrd==1.2.0 (from -r rrrrrrrrrr.txt (line 2))
  466. Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b0/16/63576a1a001752e34bf8ea62e367997530dc553b689356b9
  467. 879339cf45a4/xlrd-1.2.0-py2.py3-none-any.whl (103kB)
  468. 100% |████████████████████████████████| 112kB 8.2kB/s
  469. Saved e:\package\xlrd-1.2.0-py2.py3-none-any.whl
  470. Collecting xlwt==1.3.0 (from -r rrrrrrrrrr.txt (line 3))
  471. Downloading https://pypi.tuna.tsinghua.edu.cn/packages/44/48/def306413b25c3d01753603b1a222a011b8621aed27cd7f8
  472. 9cbc27e6b0f4/xlwt-1.3.0-py2.py3-none-any.whl (99kB)
  473. 100% |████████████████████████████████| 102kB 1.4MB/s
  474. Saved e:\package\xlwt-1.3.0-py2.py3-none-any.whl
  475. Collecting openpyxl==3.0.3 (from -r rrrrrrrrrr.txt (line 4))
  476. Downloading https://pypi.tuna.tsinghua.edu.cn/packages/95/8c/83563c60489954e5b80f9e2596b93a68e1ac4e4a730deb1a
  477. ae632066d704/openpyxl-3.0.3.tar.gz (172kB)
  478. 100% |████████████████████████████████| 174kB 3.7MB/s
  479. Saved e:\package\openpyxl-3.0.3.tar.gz
  480. Collecting chardet==3.0.4 (from -r rrrrrrrrrr.txt (line 6))
  481. Downloading https://pypi.tuna.tsinghua.edu.cn/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c5
  482. 1f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
  483. 100% |████████████████████████████████| 143kB 6.4MB/s
  484. Saved e:\package\chardet-3.0.4-py2.py3-none-any.whl
  485. Collecting jdcal (from openpyxl==3.0.3->-r rrrrrrrrrr.txt (line 4))
  486. Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f0/da/572cbc0bc582390480bbd7c4e93d14dc46079778ed915b50
  487. 5dc494b37c57/jdcal-1.4.1-py2.py3-none-any.whl
  488. Saved e:\package\jdcal-1.4.1-py2.py3-none-any.whl
  489. Collecting et_xmlfile (from openpyxl==3.0.3->-r rrrrrrrrrr.txt (line 4))
  490. Downloading https://pypi.tuna.tsinghua.edu.cn/packages/22/28/a99c42aea746e18382ad9fb36f64c1c1f04216f41797f2f0
  491. fa567da11388/et_xmlfile-1.0.1.tar.gz
  492. Saved e:\package\et_xmlfile-1.0.1.tar.gz
  493. Successfully downloaded cx-Oracle xlrd xlwt openpyxl chardet jdcal et-xmlfile
  494. E:\package> pip download -r requirements.txt -d E:/package

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/232161
推荐阅读
相关标签
  

闽ICP备14008679号