简体   繁体   中英

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.

I also faced the same issue in windows 10 and after research, i found its a python installation issue in windows 10.

steps to resolve the issue:

  1. Please uninstall non-relavent python from windows 10.(else create python virtual environment).
  2. Please install chocolatey in windows 10 using - https://chocolatey.org/docs/installation#installing-chocolatey link.
  3. Open cmd as admin and run below with specific python version choco install python3 --version 3.6.5 ref - https://chocolatey.org/packages/python3/3.6.5
  4. Verify your environment variable have a new Python installation path.
  5. open new cmd and type python and verify the version.
  6. on cmd run - pip install rasa.

it's better to create a virtual environment and do development there and follow above steps. Go to new folder and open cmd .

  1. pip3 install -U pip virtualenv (folder name).
  2. type - .\\venv\\Scripts\\activate.
  3. pip install --upgrade pip.

Source - https://www.tensorflow.org/install/pip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM