国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.解決辦法

這篇具有很好參考價值的文章主要介紹了Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.解決辦法。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

??電腦磕壞了

? ?最近把公司給的mac屏幕給磕壞了,換成自己的macbookpro,本來想用時間機(jī)器做個無縫銜接,結(jié)果發(fā)現(xiàn)不能用了,跟客服溝通被告知macos版本在11以上不支持時間機(jī)器系統(tǒng)遷移,只能使用遷移助理做數(shù)據(jù)備份,非常痛苦!??!要重新安裝各種環(huán)境,各種軟件?。。?!??????????

??????努力安裝軟件

? ?安裝了很多開發(fā)常用的工具,就不一一羅列了。還有各種環(huán)境配置,經(jīng)過兩天的時間,差不多達(dá)到了以前環(huán)境的80%,還有一些細(xì)節(jié)需要優(yōu)化,工欲善其事,必先利其器。
? ?于是我開始跑前端項目,安裝完了nodejs,當(dāng)我用npm i編譯時,給我來了一大段報錯

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (/Users/scott/project/dx_project/front_project/workflow-frontend-elem/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (/Users/scott/project/dx_project/front_project/workflow-frontend-elem/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack     at F (/Users/scott/project/dx_project/front_project/workflow-frontend-elem/node_modules/which/which.js:68:16)
gyp ERR! stack     at E (/Users/scott/project/dx_project/front_project/workflow-frontend-elem/node_modules/which/which.js:80:29)
gyp ERR! stack     at /Users/scott/project/dx_project/front_project/workflow-frontend-elem/node_modules/which/which.js:89:16
gyp ERR! stack     at /Users/scott/project/dx_project/front_project/workflow-frontend-elem/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /Users/scott/project/dx_project/front_project/workflow-frontend-elem/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:192:21)
gyp ERR! System Darwin 21.5.0
gyp ERR! command "/usr/local/bin/node" "/Users/scott/project/dx_project/front_project/workflow-frontend-elem/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/scott/project/dx_project/front_project/workflow-frontend-elem/node_modules/node-sass
gyp ERR! node -v v14.17.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN @babel/plugin-proposal-class-static-block@7.18.0 requires a peer of @babel/core@^7.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.17.12 requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/helper-define-polyfill-provider@0.2.4 requires a peer of @babel/core@^7.4.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/helper-define-polyfill-provider@0.3.1 requires a peer of @babel/core@^7.4.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN diboot-element-admin@2.3.1 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/scott/.npm/_logs/2022-06-08T09_20_09_286Z-debug.log
scott@ScottdeMacBook-Pro workflow-frontend-elem % npm install --save-dev node-sass
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

> node-sass@4.14.1 install /Users/scott/project/dx_project/front_project/workflow-frontend-elem/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-x64-83_binding.node

發(fā)現(xiàn)一段錯誤提示Error: Can‘t find Python executable “python“, you can set the PYTHON env variable,這提示貌也很明顯,告訴我們沒有python,我在終端檢查了一下果然沒有。
我記得macos是自帶python2.7的,于是我查閱了一下資料,發(fā)現(xiàn)Moterey這個版本的操作系統(tǒng)移出了python,需要自己去安裝。好吧,認(rèn)命,我裝。
于是我開始使用homebrew安裝python3.X。

# 命令大概是這樣子
brew install python3
brew link python3

細(xì)心的我觀察到報錯時調(diào)用的是’python’命令,于是在.bash_profile中增加了別名配置

alias python3='/usr/bin/python3'
alias python=python3
alias python2=python3

滿心歡喜繼續(xù)執(zhí)行npm i 進(jìn)行編譯項目,結(jié)果還是報錯??????,不過細(xì)心的我肯定會注意到這一句提示Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-x64-83_binding.node,這個node-saas從github去拉,沒有拉下來。我不是已經(jīng)改過了鏡像源了么,于是我又查閱了一些資料。于是乎查到了一個命令。

????終極解決方案

沒錯,我們需要改變它的下載地址????,通過下面這個命令把下載地址改為淘寶鏡像。

npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass

Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.解決辦法

可以看到已經(jīng)下載好了,這時候我們就可以正常的npm install了,所以有時候遇到問題不要慌,這個解決不了,那么就先解決下一個。????只要你跑的夠快,bug就追不上你。
點贊收藏,富婆包養(yǎng)文章來源地址http://www.zghlxwxcb.cn/news/detail-402605.html

到了這里,關(guān)于Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • ./configure: error: SSL modules require the OpenSSL library. You can either do not enable the module

    ?Ubuntu22系統(tǒng),參考nginx文檔Support for QUIC and HTTP/3?執(zhí)行如下命令: 時報錯如下: 但其實系統(tǒng)是有openssl庫的: ? ?out git:(v1.1.0) ? openssl version OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022) 必應(yīng)了一下,參考了這兩個:https://forum.nginx.org/read.php?2,299223??#2605 (NGINX + BoringSSL b

    2024年04月27日
    瀏覽(28)
  • Python:執(zhí)行py命令,提示: Can‘t find a default Python.

    Python:執(zhí)行py命令,提示: Can‘t find a default Python.

    今天,要運行一個前年用python編寫的爬蟲程序,先檢測python運行環(huán)境是否正常: D:Python38-32worksc:windowspy.exe Can\\\'t find a default Python. 再試: D:Python38-32workspy --list Installed Pythons found by py Launcher for Windows No Installed Pythons Found! C:WINDOWSsystem32 assoc .py=Python.File C:WINDOWSsystem32ftype P

    2024年04月10日
    瀏覽(15)
  • error: can‘t find Rust compiler

    error: can‘t find Rust compiler

    操作系統(tǒng) win11 pip install -r requirements.txt 報錯如下 解決方法: 去官網(wǎng)下載安裝rustup.rs - The Rust toolchain installer 下載完rustup-init.exe,運行安裝,會出現(xiàn)窗口提示需要預(yù)先安裝vs,按默認(rèn)安裝即可。等一會vs安裝成功。 需要再次手動運行rustup-init.exe,這次就是正式安裝了,?都按模

    2024年02月11日
    瀏覽(17)
  • Authorization Failed You can close this page and return to the IDE

    Authorization Failed You can close this page and return to the IDE

    注冊JetBrains成功,并且通過了學(xué)生認(rèn)證,但在activate pycharm時,卻顯示Authorization Failed You can close this page and return to the IDE如上圖 可能是因為之前使用了破解版pycharm 1.打開文件夾中隱藏的項目 2.找到JeBrains文件夾,在AppData下面,將JeBrains文件夾刪除 目錄:c盤-用戶-AppData 3.找到下

    2024年01月25日
    瀏覽(20)
  • ?git pull 提示 hint: You can replace “git config“ with “git config --global“ to set a default?

    hint: You can replace \\\"git config\\\" with \\\"git config --global\\\" to set a default hint:?preference?for all repositories. You can also pass --rebase, --no-rebase, hint: or --ff-only on the command line to override the configured default per hint: invocation. fatal: Need to specify how to reconcile divergent branches. 解決方法: 終端運行:git config p

    2024年02月04日
    瀏覽(25)
  • ubuntu下,在vscode中使用platformio出現(xiàn) Can not find working Python 3.6+ Interpreter的問題

    ubuntu下,在vscode中使用platformio出現(xiàn) Can not find working Python 3.6+ Interpreter的問題

    有一段時間沒有使用platformio了,今天突然使用的時候,發(fā)現(xiàn)用不了,報錯: Ubuntu PlatformIO: Can not find working Python 3.6+ Interpreter. Please install the latest Python 3 and restart VSCode。 上網(wǎng)一查,發(fā)現(xiàn)好多人遇到,同時他們也給出了解決辦法: 【Ubuntu vscode pio extension install: PlatformIO: Can no

    2024年02月14日
    瀏覽(27)
  • [ERROR] Error executing Maven.[ERROR] The specified user settings file does not exist:

    [ERROR] Error executing Maven.[ERROR] The specified user settings file does not exist:

    今天在導(dǎo)入JavaEE項目的時候運行時出現(xiàn)了以下錯誤: [ERROR] Error executing Maven. [ERROR] The specified user settings file does not exist: C:Usersmavenapache-maven-3.6.2-binapache-maven-3.6.2confsettings.xml ?解決方法 兩種,主要看自己使用的tomcat: 1、 File——Settings,選擇正確的Maven安裝路徑。 ?2、 點

    2024年02月08日
    瀏覽(26)
  • Warning: [ant-design-vue: Form.Item] FormItem can only collect one field item, you haved set `ASele

    Warning: [ant-design-vue: Form.Item] FormItem can only collect one field item, you haved set `ASele

    控制臺出現(xiàn)這個提示: Warning: [ant-design-vue: Form.Item] FormItem can only collect one field item, you haved set ASelect , ASelect , AInputNumber , AInputNumber , AInput 5 field items. You can set not need to be collected fields into a-form-item-rest table中使用了自定義組件 如圖: 解決方案: 詳情 官網(wǎng)

    2024年02月11日
    瀏覽(19)
  • 解決PyCharm安裝其他庫包時出現(xiàn)的“error: can‘t find Rust compiler“錯誤

    解決PyCharm安裝其他庫包時出現(xiàn)的\\\"error: can’t find Rust compiler\\\"錯誤 在使用PyCharm安裝其他Python庫包時,有時候會遇到\\\"error: can’t find Rust compiler\\\"的錯誤提示。這個錯誤通常是由于缺少Rust編譯器導(dǎo)致的。Rust是一種系統(tǒng)級編程語言,一些Python庫包在安裝過程中需要使用Rust編譯器來編

    2024年03月23日
    瀏覽(36)
  • electron打包運行白屏、Can not find modules ‘xxx‘,Dynamic Linking Error等問題

    原因:應(yīng)該寫在dependencies里的寫在了devDependencies,或者相反。有些依賴寫反了是可以運行的,但是打包不行 在Electron項目中的package.json文件中,dependencies和devDependencies都是用來聲明應(yīng)用程序所依賴的npm包的。它們之間的區(qū)別在于: dependencies dependencies是指應(yīng)用程序在運行時所

    2024年02月08日
    瀏覽(38)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包