在Anaconda中配置多个环境

试想一下假如你之前的很多深度学习模型都是使用基于keras 1.x写的。现在你写了一个基于Keras 2.x的模型,或者你找到的一个别人公开的代码是基于Keras 2.x的。那么如何既能运行原先写的基于Keras 1.x的程序,又可以运行现在这些Keras 2.x的程序呢? Anaconda为我们提供了一个很方便的方法:配置多个环境,一个环境是Keras 1.x的,另一个环境是Keras 2.x。

步骤为:

1.新建anaconda环境,名为new_keras

conda create -n new_keras

2.切换到new_keras这个环境

source activate new_keras

(windows下为activate new_keras)

3.选择python版本(可选)

由于python版本不对应,切换到相应的版本

conda install python=3.5

4.安装tensorflow

到https://github.com/tensorflow/tensorflow下载.whl文件

pip install --ignore-installed --upgrade 文件路径

5.安装最新版本keras

pip install keras

使用时,通过source activate new_keras切换到该环境,这时可以通过conda install安装库,通过python命令运行程序。

另外,使用conda info –envs可以看到conda里面的环境。通过conda activate root可以切换回默认环境。

在pyCharm中使用anacondas 环境, 可以通过:

File->Settings->Project->Project Interpreter

选择相应的环境。一般来说,选择Anaconda安装目录下的envs/new_keras/python.exe。

参考:

https://conda.io/docs/using/envs.html

883 评论

  1. Pingback: Nike Outlet Store
  2. Pingback: NFL Jerseys
  3. Pingback: Yeezy
  4. Pingback: Nike Outlet
  5. Pingback: Nike Outlet
  6. Pingback: Travis Scott jordan 1
  7. Pingback: Yeezy Boost 350 V2
  8. Pingback: Yeezy
  9. Pingback: Yeezy
  10. Pingback: Yeezy
  11. Pingback: air jordan 11 concord
  12. Pingback: lyngby bk vs agf
  13. Pingback: gumiaki z kokardk膮
  14. Pingback: trustedmdstorefy.com
  15. Pingback: bofilm ???èà?
  16. Pingback: bofilm
  17. Pingback: 1 seriya
  18. Pingback: topedstoreusa.com
  19. Pingback: viagramdtrustser.com
  20. Pingback: mens ua camo 2.0 cap
  21. Pingback: 4serial.com
  22. Pingback: See-Season-1
  23. Pingback: Evil-Season-1
  24. Pingback: Evil-Season-2
  25. Pingback: Evil-Season-3
  26. Pingback: Evil-Season-4
  27. Pingback: Dollface-Season-1
  28. Pingback: serviette plage femme
  29. Pingback: Human Races
  30. Pingback: Cheap MLB Jerseys
  31. Pingback: serial 2020
  32. Pingback: Dailymotion
  33. Pingback: Watch+movies+2020
  34. Pingback: Human Race Shoes
  35. Pingback: Yeezy Boost 380
  36. Pingback: serial
  37. Pingback: tvrv.ru
  38. Pingback: 1plus1tv
  39. Pingback: #1plus1
  40. Pingback: 1plus1
  41. Pingback: 2020
  42. Pingback: Uggs Official Site
  43. Pingback: Nike Factory Outlet
  44. Pingback: Watch Movies Online
  45. Pingback: Film
  46. Pingback: Film 2020
  47. Pingback: Film 2021
  48. Pingback: Top 10 Best
  49. Pingback: watch online TV LIVE
  50. Pingback: vionic fitflops
  51. Pingback: Yeezy 380
  52. Pingback: Nike Outlet Online
  53. Pingback: osnovci blic online
  54. Pingback: nike huarache girls
  55. Pingback: puma ess logo beanie
  56. Pingback: barna gy枚ngy szett
  57. Pingback: body bag lacoste
  58. Pingback: tee shirt cancer
  59. Pingback: Yeezy
  60. Pingback: human design
  61. Pingback: dizajn cheloveka
  62. Pingback: human-design-space
  63. Pingback: Yeezy
  64. Pingback: MLB Jerseys
  65. Pingback: koma 2020
  66. Pingback: The-Gentlemen
  67. Pingback: led-2
  68. Pingback: pod-vodoi
  69. Pingback: brown samba adidas
  70. Pingback: Yeezy 350
  71. Pingback: vk 2020
  72. Pingback: Yeezy
  73. Pingback: mint green kanken
  74. Pingback: superhero tie bar
  75. Pingback: rosa flip flops bulk
  76. Pingback: 2020 sky azul vans
  77. Pingback: bikini tijgerprint
  78. Pingback: parazity-oskar-2020
  79. Pingback: m枚bel online portal
  80. Pingback: nike new balance 373
  81. Pingback: funda mini iphone 6
  82. Pingback: all red zx flux
  83. Pingback: NBA Jerseys
  84. Pingback: NBA Jerseys
  85. Pingback: CheapNBA Jerseys
  86. Pingback: Pandora
  87. Pingback: Pandora Outlet
  88. Pingback: Pandora Canada
  89. Pingback: Pandora Charms
  90. Pingback: jobb i lovavdelingen
  91. Pingback: Adidas Yeezy
  92. Pingback: Basketball Jerseys
  93. Pingback: Pandora Jewelry
  94. Pingback: badjassen en kimonos
  95. Pingback: DSmlka
  96. Pingback: froning 1 shoe
  97. Pingback: viagra
  98. Pingback: viagra online
  99. Pingback: +
  100. Pingback: Yeezy Boost 350 V2
  101. Pingback: d'oro rush cocktail
  102. Pingback: ?jak Son?k
  103. Pingback: astrolog
  104. Pingback: patriotic golf shoes
  105. Pingback: MLB Jerseys Wholesale
  106. Pingback: union jersey 2018
  107. Pingback: Nike Shoes
  108. Pingback: watch online
  109. Pingback: bershka china
  110. Pingback: Yeezy 350
  111. Pingback: kinoxaxru.ru
  112. Pingback: white d rose 7
  113. Pingback: pobachennya u vegas
  114. Pingback: Proshanie so Stalinym
  115. Pingback: strelcov 2020
  116. Pingback: film t-34
  117. Pingback: canadian pharmacy
  118. Pingback: Chaussure Yeezy
  119. Pingback: girls summer sale
  120. Pingback: Air Max 270
  121. Pingback: Air Force 1
  122. Pingback: obuv chelsea
  123. Pingback: Beograd film 2020
  124. Pingback: psiholog
  125. Pingback: hurley camuflada
  126. Pingback: psixolog
  127. Pingback: welcome stranger
  128. Pingback: psyhelp_on_line
  129. Pingback: coronavirus
  130. Pingback: podjetje za razvojno
  131. Pingback: gigi trainers
  132. Pingback: beea loose fit broek
  133. Pingback: Bijoux Pandora
  134. Pingback: Pandora
  135. Pingback: PSYCHOSOCIAL
  136. Pingback: rasstanovka hellinger
  137. Pingback: botas marca merrell
  138. Pingback: Yeezy Release
  139. Pingback: Cherekasi film 2020
  140. Pingback: 艖szi n艖i bakancs
  141. Pingback: neon stenske nalepke
  142. Pingback: vil谩gj谩r贸k
  143. Pingback: skechers like chacos
  144. Pingback: sneakers 2016 uomo
  145. Pingback: film doktor_liza
  146. Pingback: djoker film
  147. Pingback: nicht b眉geln
  148. Pingback: bermuda plage femme
  149. Pingback: armee weste
  150. Pingback: best protection dog
  151. Pingback: generic viagra
  152. Pingback: buy viagra online
  153. Pingback: cintura gucci online
  154. Pingback: gidonline-filmix.ru
  155. Pingback: pantoufles besson
  156. Pingback: Air Max 270
  157. Pingback: apothekerkittel shop
  158. Pingback: manteau blanc caroll
  159. Pingback: scary realistic masks
  160. Pingback: Nike Outlet
  161. Pingback: kuty谩k 谩ra
  162. Pingback: redskins blouson cuir
  163. Pingback: 2020 go walk ultra
  164. Pingback: Air Force 1
  165. Pingback: monos para verano
  166. Pingback: skl谩dac铆 拧tafle
  167. Pingback: Air Max 97
  168. Pingback: viagra generic
  169. Pingback: mikina chelsea
  170. Pingback: moon boots schuhe
  171. Pingback: guldkedja med h盲nge
  172. Pingback: myq with google home
  173. Pingback: 蟿味喂谓 2016
  174. Pingback: marque de pull
  175. Pingback: claquette homme nike
  176. Pingback: laminate floor cutter
  177. Pingback: cucine moderne prezzi
  178. Pingback: dog food for cat
  179. Pingback: zcd montreal manteaux
  180. Pingback: sneakers charlie
  181. Pingback: christina hendricks
  182. Pingback: nejlepsi stan
  183. Pingback: animali a 4 zampe
  184. Pingback: vans sk8 femme
  185. Pingback: skaftdammsugare rea
  186. Pingback: adax neo akci贸
  187. Pingback: jd tassen
  188. Pingback: linterna duracell
  189. Pingback: suha kosa
  190. Pingback: the rock black jumper
  191. Pingback: eleganckie jeansy
  192. Pingback: chaiselong k酶b
  193. Pingback: mens printed ties
  194. Pingback: cuffie da dj
  195. Pingback: spis svart
  196. Pingback: extra petite wedding
  197. Pingback: impostazioni avanzate
  198. Pingback: damen nachthemd 54
  199. Pingback: talon haut noir femme
  200. Pingback: pandora ofertas 2016
  201. Pingback: armoire papier wc
  202. Pingback: t.me/psyhell
  203. Pingback: ??è????? ?í?àéí
  204. Pingback: lebron straps
  205. Pingback: bom vinho tinto seco
  206. Pingback: izrada nau拧nica
  207. Pingback: cazadoras custom
  208. Pingback: venta online running
  209. Pingback: amazon usb gamepad
  210. Pingback: bitly.com
  211. Pingback: viagra 100mg
  212. Pingback: viagra price
  213. Pingback: viagra coupon
  214. Pingback: cheap viagra
  215. Pingback: pittsburgh jersey
  216. Pingback: pluszak lama
  217. Pingback: venta botas futbol
  218. Pingback: margele de cumparat
  219. Pingback: hu nmd white
  220. Pingback: leroy merlin paredes
  221. Pingback: v媒chodn茅 nemecko
  222. Pingback: 2020 gel nimbus 8
  223. Pingback: biustonosz dla dzieci
  224. Pingback: oviesse zaini
  225. Pingback: protector de colchon
  226. Pingback: vad 盲r analog
  227. Pingback: aparat ultrasunete
  228. Pingback: allaway suodatin
  229. Pingback: vestido tejano bahona
  230. Pingback: odje膰a za kupanje
  231. Pingback: gucci nike huarache
  232. Pingback: rlowcostmd.com
  233. Pingback: bl氓 ballerinaskor
  234. Pingback: frakke torii coat
  235. Pingback: kosiarka elektryczna
  236. Pingback: arcfest茅s mint谩k
  237. Pingback: gold brogues
  238. Pingback: bitly
  239. Pingback: jeans e felpa
  240. Pingback: m盲ntypuun hinta
  241. Pingback: gap bayan bot
  242. Pingback: sand谩ly next flat
  243. Pingback: achat gaine femme
  244. Pingback: swarovski crystal
  245. Pingback: pharmacy
  246. Pingback: gusmeasu.com
  247. Pingback: movies-unhinged-film
  248. Pingback: dom 2
  249. Pingback: zoom-psykholog
  250. Pingback: zoom-viber-skype
  251. Pingback: Vratar
  252. Pingback: Cherkassy 2020
  253. Pingback: moskva-psiholog
  254. Pingback: batmanapollo.ru
  255. Pingback: 323
  256. Pingback: 525
  257. Pingback: dom2-ru
  258. Pingback: Tenet Online
  259. Pingback: psy psy psy psy
  260. Pingback: krsmi.ru
  261. Pingback: like-v.ru
  262. Pingback: CFOSPUK
  263. Pingback: MAMprEj
  264. Pingback: fgu0ygW

发表评论