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

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

      <legend id='GQnaG'><style id='GQnaG'><dir id='GQnaG'><q id='GQnaG'></q></dir></style></legend>
    1. <tfoot id='GQnaG'></tfoot>

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

      virtualenv v16.7.2 powershell activate 腳本:&quot;你必須

      virtualenv v16.7.2 powershell activate script: quot;You must #39;source#39; this script: PSgt; . .ENVScriptsactivatequot; error(virtualenv v16.7.2 powershell activate 腳本:quot;你必須source這個腳本:PSgt;..ENVScriptsactivate錯誤) -
      <legend id='ubKjr'><style id='ubKjr'><dir id='ubKjr'><q id='ubKjr'></q></dir></style></legend>
        <bdo id='ubKjr'></bdo><ul id='ubKjr'></ul>
            <tbody id='ubKjr'></tbody>

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

                本文介紹了virtualenv v16.7.2 powershell activate 腳本:&quot;你必須'source'這個腳本:PS&gt;..ENVScriptsactivate"錯誤的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                python v.3.7.4 上最新版本的 virtualenv (16.7.2) 為activate.ps1"增加了 4 行.腳本,在 Windows10 powerhsell 上運(yùn)行時會出現(xiàn)錯誤:You must 'source' this script: PS>..ENVScriptsactivate我該如何解決?(請注意,我已經(jīng)閱讀并完成了其他論壇問題以及與 windows 和 powershell 相關(guān)的 virtualenv 手冊中提到的所有內(nèi)容.)

                Newest version of virtualenv (16.7.2) on python v.3.7.4 has 4 additional lines for the "activate.ps1" script, which when run on Windows10 powerhsell gives the error: You must 'source' this script: PS> . .ENVScriptsactivate How do I fix this? (please note that I have read and done all that was mentioned on the other forum questions as well as the manual for virtualenv related to windows and powershell.)

                我已將執(zhí)行策略設(shè)置為 RemoteSigned(按照其他論壇的建議):

                I have set the execution policy to RemoteSigned (as recommended in other forums):

                Get-ExecutionPolicy -List
                
                        Scope ExecutionPolicy
                        ----- ---------------
                MachinePolicy       Undefined
                   UserPolicy       Undefined
                      Process       Undefined
                  CurrentUser       Undefined
                 LocalMachine    RemoteSigned
                

                當(dāng)我想激活 virtualenv 時,我運(yùn)行 .ENVScriptsactivate

                When I want to activate virtualenv, I run .ENVScriptsactivate

                問題在于創(chuàng)建新虛擬環(huán)境時由 virtualenv 自動生成的 activate.ps1 腳本的第 3 到 6 行:

                The problem is with lines 3 to 6 of the activate.ps1 script that is auto generated by virtualenv when you make a new virtual environment:

                if (@($null,"Internal") -notcontains $myinvocation.commandorigin) {
                    Write-Host -Foreground red "You must 'source' this script: PS> . $($myinvocation.invocationname)"
                    exit 33
                }
                

                似乎 $myinvocation.commandorigin 設(shè)置為 Runspace 而不是 Internal

                It seems that $myinvocation.commandorigin is set to Runspace instead of Internal

                我該如何解決這個問題?有任何想法嗎?謝謝 :)))請注意,我不想手動調(diào)整每個自動生成 activate.ps1 文件.

                How do I fix this? Any ideas? Thanks :))) Note that I don't want to manually adjust every auto-gen activate.ps1 file.

                推薦答案

                我們來看看那個錯誤信息:

                Let's have a look at that error message:

                您必須獲取"此腳本:PS>..ENVScriptsactivate

                Hmmmm... - PS> 可能只是提示,給我們留下了這樣的提示:

                Hmmmm... - PS> is probably just the prompt, which leaves us with this:

                  . .ENVScriptsactivate
                # ^
                # |
                # Check out this guy
                

                那個,路徑前面那個孤獨(dú)的.,也就是powershell中的dot-source operator.

                That, the lonely . in front of the path, that is the dot-source operator in powershell.

                根據(jù) 文檔,它:

                在當(dāng)前范圍內(nèi)運(yùn)行腳本,以便將腳本創(chuàng)建的任何函數(shù)、別名和變量添加到當(dāng)前范圍內(nèi).

                Runs a script in the current scope so that any functions, aliases, and variables that the script creates are added to the current scope.

                我沒有看過 virtualenv,但我認(rèn)為它需要定義一些變量并確保這些變量在腳本運(yùn)行后仍然存在,它需要運(yùn)行在當(dāng)前范圍內(nèi).

                I haven't had a look at virtualenv, but I assume it'll want to define a number of variables and to ensure that these persist after the script has run, it needs to be run in the current scope.

                所以這是你必須運(yùn)行的 literal 命令來修復(fù)它:

                So this is the literal command you have to run to fix it:

                . .ENVScriptsactivate
                

                這篇關(guān)于virtualenv v16.7.2 powershell activate 腳本:&quot;你必須'source'這個腳本:PS&gt;..ENVScriptsactivate"錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機(jī)器人?)
                Discord bot isn#39;t responding to commands(Discord 機(jī)器人沒有響應(yīng)命令)
                Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機(jī)器人的功能?(不和諧.py))
                message.channel.id Discord PY(message.channel.id Discord PY)
                How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機(jī)器人?)
                discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                  <bdo id='kmBsw'></bdo><ul id='kmBsw'></ul>

                    <tbody id='kmBsw'></tbody>
                • <legend id='kmBsw'><style id='kmBsw'><dir id='kmBsw'><q id='kmBsw'></q></dir></style></legend>

                    1. <small id='kmBsw'></small><noframes id='kmBsw'>

                        • <tfoot id='kmBsw'></tfoot>

                          <i id='kmBsw'><tr id='kmBsw'><dt id='kmBsw'><q id='kmBsw'><span id='kmBsw'><b id='kmBsw'><form id='kmBsw'><ins id='kmBsw'></ins><ul id='kmBsw'></ul><sub id='kmBsw'></sub></form><legend id='kmBsw'></legend><bdo id='kmBsw'><pre id='kmBsw'><center id='kmBsw'></center></pre></bdo></b><th id='kmBsw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='kmBsw'><tfoot id='kmBsw'></tfoot><dl id='kmBsw'><fieldset id='kmBsw'></fieldset></dl></div>
                          主站蜘蛛池模板: 黄网站免费在线 | 日韩精品 电影一区 亚洲 | 新超碰97| 国产精品久久毛片av大全日韩 | 亚洲一区二区三区在线播放 | 精品免费国产一区二区三区四区 | 日屁视频| 久草视频网站 | 久久久久久九九九九 | 男人天堂网av | 国产成人黄色 | 国产精品不卡一区 | 久久精品一区 | 日韩国产在线观看 | 久久精品一区二区 | 999热精品视频 | 99视频在线免费观看 | 在线观看中文字幕一区二区 | 日韩中文字幕免费在线 | 亚洲一区二区综合 | aaa天堂| 欧美 日韩 在线播放 | 亚洲永久在线 | 欧美一二三| 国产欧美精品 | 免费观看一级视频 | 91免费观看国产 | 亚洲成人免费视频在线观看 | 免费看片国产 | 免费黄色的网站 | 一级免费毛片 | 91中文在线观看 | 国产精品精品 | 在线不卡一区 | 天天摸天天干 | 一区二区三区久久久 | 亚洲国产成人久久综合一区,久久久国产99 | 国产精品毛片在线 | 婷婷久久五月 | 欧美日韩中文字幕 | 国产精品美女久久久久久免费 |