簡體   English   中英

為 httptools 運行 setup.py install ... 錯誤

[英]Running setup.py install for httptools ... error

我試圖在 win10 中安裝 rasa 但它總是顯示 httptools 設置錯誤

ERROR: Command errored out with exit status 1: 'c:\users\sandy\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\sandy\\AppData\\Local\\Temp\\pip-install-5y1502t_\\httptools\\setup.py'"'"'; __file__='"'"'C:\\Users\\sandy\\AppData\\Local\\Temp\\pip-install-5y1502t_\\httptools\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\sandy\AppData\Local\Temp\pip-record-dg9lglte\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

我在 Windows 10 中也遇到了同樣的問題,經過研究,我發現它在 Windows 10 中存在 python 安裝問題。

解決問題的步驟:

  1. 請從 Windows 10 卸載非相關 python。(否則創建 python 虛擬環境)。
  2. 請使用 - https://chocolatey.org/docs/installation#installing-chocolatey鏈接在 Windows 10 中安裝 Chocolatey。
  3. 以管理員身份打開 cmd 並使用特定的 python 版本在下面運行 choco install python3 --version 3.6.5 ref - https://chocolatey.org/packages/python3/3.6.5
  4. 驗證您的環境變量具有新的 Python 安裝路徑。
  5. 打開新的 cmd 並輸入 python 並驗證版本。
  6. 在 cmd 運行 - pip install rasa。

最好創建一個虛擬環境並在那里進行開發並按照上述步驟進行。 轉到新文件夾並打開 cmd 。

  1. pip3 install -U pip virtualenv(文件夾名稱)。
  2. 輸入 - .\\venv\\Scripts\\activate。
  3. pip install --upgrade pip。

來源 - https://www.tensorflow.org/install/pip

暫無
暫無

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

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