久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='k5aeK'></tfoot>
      <bdo id='k5aeK'></bdo><ul id='k5aeK'></ul>

      1. <legend id='k5aeK'><style id='k5aeK'><dir id='k5aeK'><q id='k5aeK'></q></dir></style></legend>
      2. <small id='k5aeK'></small><noframes id='k5aeK'>

      3. <i id='k5aeK'><tr id='k5aeK'><dt id='k5aeK'><q id='k5aeK'><span id='k5aeK'><b id='k5aeK'><form id='k5aeK'><ins id='k5aeK'></ins><ul id='k5aeK'></ul><sub id='k5aeK'></sub></form><legend id='k5aeK'></legend><bdo id='k5aeK'><pre id='k5aeK'><center id='k5aeK'></center></pre></bdo></b><th id='k5aeK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='k5aeK'><tfoot id='k5aeK'></tfoot><dl id='k5aeK'><fieldset id='k5aeK'></fieldset></dl></div>

        pip 無(wú)法從 requirements.txt 安裝軟件包

        pip fails to install packages from requirements.txt(pip 無(wú)法從 requirements.txt 安裝軟件包)

          <tbody id='qWxDE'></tbody>

          <legend id='qWxDE'><style id='qWxDE'><dir id='qWxDE'><q id='qWxDE'></q></dir></style></legend>

        • <i id='qWxDE'><tr id='qWxDE'><dt id='qWxDE'><q id='qWxDE'><span id='qWxDE'><b id='qWxDE'><form id='qWxDE'><ins id='qWxDE'></ins><ul id='qWxDE'></ul><sub id='qWxDE'></sub></form><legend id='qWxDE'></legend><bdo id='qWxDE'><pre id='qWxDE'><center id='qWxDE'></center></pre></bdo></b><th id='qWxDE'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qWxDE'><tfoot id='qWxDE'></tfoot><dl id='qWxDE'><fieldset id='qWxDE'></fieldset></dl></div>

          <small id='qWxDE'></small><noframes id='qWxDE'>

                <bdo id='qWxDE'></bdo><ul id='qWxDE'></ul>

                <tfoot id='qWxDE'></tfoot>
                1. 本文介紹了pip 無(wú)法從 requirements.txt 安裝軟件包的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我正在嘗試使用需求文件安裝 python 軟件.

                  I am trying to install a python software using the requirements file.

                  >> cat requirements.txt
                  Cython==0.15.1
                  numpy==1.6.1
                  distribute==0.6.24
                  logilab-astng==0.23.1logilab-common==0.57.1
                  netaddr==0.7.6
                  numexpr==2.0.1
                  ply==2.5
                  pycallgraph==0.5.1
                  pyflowtools==0.3.4.1
                  pylint==0.25.1
                  tables==2.3.1
                  wsgiref==0.1.2
                  

                  所以我創(chuàng)建了一個(gè)虛擬環(huán)境

                  So I create a virtual environment

                  >> mkvirtualenv parser
                  
                  (parser)
                  >> pip freeze
                  distribute==0.6.24
                  wsgiref==0.1.2
                  
                  (parser)
                  >> pip install -r requirements.txt
                  

                  ...然后我下載了包但沒(méi)有安裝錯(cuò)誤:http://pastie.org/4079800

                  ... and then I packages downloaded but not installed with errors: http://pastie.org/4079800

                  (parser)
                  >> pip freeze
                  distribute==0.6.24
                  wsgiref==0.1.2
                  

                  令人驚訝的是,如果我嘗試手動(dòng)安裝每個(gè)軟件包,它們安裝得很好.例如:

                  Surprisingly, if I try to manually install each package, they install just fine. For instance:

                  >> pip install numpy==1.6.1
                  
                  (parser)
                  >> pip freeze
                  distribute==0.6.24
                  wsgiref==0.1.2
                  numpy==1.6.1
                  

                  我迷路了.怎么回事?

                  PS:我正在使用 pip v1.1 和 python v2.7.2 與 virtualenvvirtualenvwrapper

                  PS: I am using pip v1.1 and python v2.7.2 with virtualenv and virtualenvwrapper

                  推薦答案

                  看起來(lái) numexpr 包在安裝時(shí)依賴于 numpy.Pip 兩次通過(guò)您的要求:首先它下載所有包并運(yùn)行每個(gè)包的 setup.py 以獲取其元數(shù)據(jù),然后在第二遍中安裝它們.

                  It looks like the numexpr package has an install-time dependency on numpy. Pip makes two passes through your requirements: first it downloads all packages and runs each one's setup.py to get its metadata, and then it installs them all in a second pass.

                  所以,numexpr 是在它的 setup.py 中嘗試從 numpy 導(dǎo)入,但是當(dāng) pip 第一次運(yùn)行 numexpr 的 setup.py 時(shí),它還沒(méi)有安裝 numpy.

                  So, numexpr is trying to import from numpy in its setup.py, but when pip first runs numexpr's setup.py, it has not yet installed numpy.

                  這也是你一個(gè)一個(gè)安裝包時(shí)看不到這個(gè)錯(cuò)誤的原因:如果你一次安裝一個(gè),numpy會(huì)在你pip install 數(shù)字表達(dá)式.

                  This is also why you don't see this error when you install the packages one by one: if you install them one at a time, numpy will be fully installed in your environment before you pip install numexpr.

                  唯一的解決方案是在運(yùn)行 pip install -r requirements.txt 之前安裝 pip install numpy - 你將無(wú)法在帶有單個(gè) requirements.txt 文件的單個(gè)命令.

                  The only solution is to install pip install numpy before you ever run pip install -r requirements.txt -- you won't be able to do this in a single command with a single requirements.txt file.

                  更多信息在這里:https://github.com/pypa/pip/issues/25

                  這篇關(guān)于pip 無(wú)法從 requirements.txt 安裝軟件包的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個(gè)模塊和類)
                  Configuring Python to use additional locations for site-packages(配置 Python 以使用站點(diǎn)包的其他位置)
                  How to structure python packages without repeating top level name for import(如何在不重復(fù)導(dǎo)入頂級(jí)名稱的情況下構(gòu)造python包)
                  Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                  How to refresh sys.path?(如何刷新 sys.path?)
                  Distribute a Python package with a compiled dynamic shared library(分發(fā)帶有已編譯動(dòng)態(tài)共享庫(kù)的 Python 包)
                  <tfoot id='KIJD1'></tfoot>
                2. <legend id='KIJD1'><style id='KIJD1'><dir id='KIJD1'><q id='KIJD1'></q></dir></style></legend>

                3. <i id='KIJD1'><tr id='KIJD1'><dt id='KIJD1'><q id='KIJD1'><span id='KIJD1'><b id='KIJD1'><form id='KIJD1'><ins id='KIJD1'></ins><ul id='KIJD1'></ul><sub id='KIJD1'></sub></form><legend id='KIJD1'></legend><bdo id='KIJD1'><pre id='KIJD1'><center id='KIJD1'></center></pre></bdo></b><th id='KIJD1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='KIJD1'><tfoot id='KIJD1'></tfoot><dl id='KIJD1'><fieldset id='KIJD1'></fieldset></dl></div>

                    <small id='KIJD1'></small><noframes id='KIJD1'>

                        <bdo id='KIJD1'></bdo><ul id='KIJD1'></ul>

                            <tbody id='KIJD1'></tbody>
                            主站蜘蛛池模板: 天堂av网站 | 黄色成人毛片 | 日韩免费在线观看 | 日韩在线观看中文字幕 | 成人三级在线观看 | 国产不卡视频 | 亚洲午夜在线 | 97人人艹 | 免费视频毛片 | 亚洲免费专区 | 亚洲激情在线视频 | 午夜免费影院 | 亚洲永久免费视频 | 亚洲一区视频在线 | 男女激情视频网站 | 日韩中文视频 | 一区二区三区免费在线观看 | 99香蕉视频 | 欧美一区二区三区在线视频 | 一区二区免费看 | 四虎影院在线免费观看 | 视频在线观看一区 | 91欧美日韩 | 四虎影音 | 国产三级免费观看 | 亚洲xxxxx| 成人一区二区三区 | 中文字幕精品视频 | av手机版 | 国产精品日韩欧美 | 国产成人亚洲精品自产在线 | 欧美成人一级 | 国产视频中文字幕 | 国产成人在线观看免费网站 | 欧美国产综合 | 久久黄色录像 | 国产成人精品av | 国产精品视频久久 | 国产精品婷婷 | 国产黄色在线 | 成人a视频 |