簡體   English   中英

嘗試安裝 pyInstaller,但是在創建 venv 時出現錯誤提示“系統找不到指定的路徑”。

[英]Trying to install pyInstaller, however when creating a venv comes up with error saying “The system cannot find the path specified.”

我正在嘗試安裝 pyInstaller。 當我將-c -i pyi-env-name放入 pipWin 並單擊運行時,它會打開一個新的命令框,但會出現錯誤:

The system cannot find the path specified.
1
The system cannot find the path specified.

這就是它所寫的全部內容。 任何解決此問題的幫助將不勝感激。

您必須將 python 安裝文件夾中的 Scripts 子文件夾添加到環境變量中:

在我的情況下,路徑是:

C:\Users\Costin\AppData\Local\Programs\Python\Python38-32\Scripts

要將目錄添加到 Windows 中的路徑:

Edit System Environment Variables -> Environment Variables -> Path -> Edit and paste the path

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM