![](/img/trans.png)
[英]Python 3.9.12 build failed - generate-posix-vars failed
python 的新手。嘗試通過 pyenv 安裝3.9.12 。 出現以下錯誤: 我在 M1 上。 不確定這是否與它有關。 ...
[英]Python 3.9.12 build failed - generate-posix-vars failed
python 的新手。嘗試通過 pyenv 安裝3.9.12 。 出現以下錯誤: 我在 M1 上。 不確定這是否與它有關。 ...
[英]PyScript: Loading from file failed with error 404 (File not Found) (Loading from another module)
如何從 pyscript 從本地模塊導入? 這是我的代碼: 我正在嘗試從中導入BookOperations file和 function get_books_count但瀏覽器中一直出現此錯誤: PyScript: Loading from file../app/db_operations/Boo ...
[英]WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. [Ubuntu 22.04]
我正在運行 Ubuntu 22.04 並安裝了 pyenv 2.3.11,並且可以在其上成功啟動 Python 3.8.13 版本。 但是,每當我嘗試運行 我收到以下錯誤 WARNING: pip is configured with locations that require TLS/SSL, ...
[英]Anyone know why my .bash_profile is adding "export pyenv" everytime i open terminal?
我遇到了一個問題,vscode 在空白屏幕中加載終端,我在 vscode 中收到一條錯誤消息,提示“無法解析您的 shell 環境”。 所以我決定檢查我的.bash_profile文件,驚訝地發現它超過 700 行,主要是重復以下代碼: 我刪除了文件並重新打開終端並意識到每次打開終端時,它都會添加 ...
[英]Problems with installing Python 3.11.1 using pyenv
我嘗試使用 Pyenv 安裝 Python 3.11.1 並得到了這個: OpenSSL 以 2 種不同的方式安裝(使用 apt - latest for 22.10 and 2 with brew - 1.1 and 3)默認情況下: ...
[英]Pyenv unable to install older versions of Python 3 due to `configure: error: C compiler cannot create executables`
我一直在嘗試使用pyenv安裝舊版本的 python3。 我試過3.0.1 、 3.1.0 、 3.1.1和3.1.2 。 我一直收到錯誤 根據 pyenv 的一些文檔,我嘗試更新我的命令以顯式傳遞標頭和庫的位置,如下所示: 這似乎已經克服了那個錯誤,但現在我得到了錯誤configure: erro ...
[英]Infinite issues python versions macOS and modules
我在 macOS 上的 python 遇到了很多問題(我是初學者)我想使用模塊但是每次我安裝一些東西時它說模塊不存在即使它已經安裝我認為這可能是許多原因Python 版本 python3 -- version says python 3.10.8 pip3 --version says python ...
[英]Poetry creates a project with wrong Python version
我正在嘗試通過我的 pyenv 安裝和自制軟件來創建一個帶有最新版本 python 安裝的詩歌項目。 下面的終端命令顯示了我擁有的 pyenv 和 poetry 的版本。 我遇到的問題是,盡管我的機器上只安裝了 python 版本 3.9.6,但每次創建詩歌項目時都默認使用 python 版本 3. ...
[英]pipenv is not able to pickup the python versions from pyenv(pyenv-win)?
賞金將在 8 小時后到期。 此問題的答案有資格獲得+50聲望賞金。 Kungfu panda正在尋找可靠來源的答案: 我如何更改 pipenv 的路徑以從 pyenv 獲取下載而不是選擇默認的 python 安裝? 我嘗試在 python 中將 pyenv(pyenv-win) 與 pipenv ...
[英]pyenv deletes python after installing
我嘗試安裝 python (盡管無論版本如何都會發生這種情況)在我的 Raspberry Pi 上。 運行安裝時,在~/.pyenv/versions中有一個3.11.0目錄, pyenv versions識別它,安裝的 python 實際上是可用的,但是安裝過程完成后該目錄消失了。 樹莓派操作 ...
[英]Poetry and Pyenv versioning issue
有人可以向我解釋這里發生了什么嗎? 我正在嘗試讓 pyenv 和 poetry 放在一起。 我在Ubuntu 20.04的 AWS 實例上安裝了python 3.8.10 。 (我已經從系統中刪除了所有 python2 的痕跡)。 我想使用 python 3.10,但我不能只升級到那個(非常感謝亞 ...
[英]pyenv shell errors after uninstalling pyenv
我最近一直在診斷為什么我的 pyenv 安裝在 shell 中給我錯誤。在嘗試了所有我能找到的東西之后,我想我會把它從我的系統中刪除。 但是,卸載后,加載新終端和 zsh 時仍然看到pyenv shell zsh: command not found: pyenv 我采取的步驟: rm -rf $( ...
[英]Enable pyenv-virtualenv prompt at terminal
我剛剛安裝了 pyenv 和 virtualenv 如下: https://realpython.com/intro-to-pyenv/ 完成安裝后,系統提示我: 我將export PYENV_VIRTUALENV_DISABLE_PROMPT=1添加到我的.bash_aliases只是為了查看行為 ...
[英]pipenv does'nt use pyenv with "pipenv shell" command
pyenv 用於“python”命令。 但是 pipenv 在創建虛擬環境時不會將 pyenv 與“pipenv shell”命令一起使用。 為什么會這樣? ...
[英]Can't install pyenv on MacOS Ventura 13.0
一位程序員朋友建議我使用 pyenv 在我的 mac 上重新安裝pyenv 。 我不明白為什么,但考慮到他在 python 方面比我專業得多,我決定相信他。 他說要做 並且brew install pyenv工作正常,但是pyenv install 3.10.0給了我以下錯誤: 所以我有兩個問題: ...
[英]pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled (internal generated filenames are not absolute)
通過運行:from sklearn.datasets import fetch_california_housing import pandas as pd pd.set_option("precision", 4) # massimo numero di cifre decimali pd. ...
[英]pyenv windows the term 'pyenv' is not recognized as the name of a cmdlet, function
在 vs 代碼中的 powershell 腳本中執行以下操作 收到錯誤術語“pyenv”未被識別為 cmdlet、function、腳本文件或可運行程序的名稱。 它第一次工作但不再工作,這很奇怪(可能與緩存有關)。 關於做錯了什么的任何想法? output 來自終端 ...
[英]How do I get pyenv to display the executable path for an installed version?
使用以下命令安裝 python 版本: 列出現在可用的 python 版本: 一周過去了,我忘記了它的安裝位置。 現在假設我想獲取 3.8.9 版本的可執行路徑。 以下不起作用: 我發現的解決方法是設置 python 版本,檢查,然后將其設置回系統: 然而,這是一個次優的解決方案,因為它要求沒有本 ...
[英]All my poetry commands fail with 'The Poetry config is invalid'
我正在使用帶有 Poetry 1.2.1 的運行 Python 3.9.9 的 macOS Monterey 版本 12.6。 我正在嘗試使用“詩歌安裝”從 pyproject.toml 為我的項目安裝所有依賴項,並且我不斷收到消息The Poetry config is invalid: ...
[英]Cannot set default python version to 3.10.6 using Pyenv
我正在努力在 Mac 上將我的默認 python 更新為 3.10.6。 我似乎能夠將“全局”和“本地”設置為新的(如代碼中所示),但這不會影響默認值...... 非常感謝您的幫助,因為我是初學者! ///////// charlieharrison@MacBook-Pro-4 ~ % pye ...