Python Forum
"pip install -e ." returns : ERROR: Command errored out with exit status 1 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: "pip install -e ." returns : ERROR: Command errored out with exit status 1 (/thread-27489.html)



"pip install -e ." returns : ERROR: Command errored out with exit status 1 - mostafaPython - Jun-08-2020

hello

I would like to install an existing python project (pyramid framework, here the steps I did:
  • python -m venv isee-backend\venv
  • isee-backend\venv\Scripts\activate.bat
  • cd isee-backend
  • pip install -e .


with pip install -e . I got this error :

Running setup.py install for pyfarmhash ... error

Error:
ERROR: Command errored out with exit status 1: command: 'c:\users\standarduser\code\isee\isee-backend\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\standarduser\\AppData\\Local\\Temp\\pip-install-oojul98x\\pyfarmhash\\setup.py'"'"'; __file__='"'"'C:\\Users\\standarduser\\AppData\\Local\\Temp\\pip-install-oojul98x\\pyfarmhash\\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\standarduser\AppData\Local\Temp\pip-record-cp02n1i_\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\standarduser\code\isee\isee-backend\venv\include\site\python3.8\pyfarmhash' cwd: C:\Users\standarduser\AppData\Local\Temp\pip-install-oojul98x\pyfarmhash\ Complete output (6 lines): Warning: 'keywords' should be a list, got type 'tuple' running install running build running build_ext building 'farmhash' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\standarduser\code\isee\isee-backend\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\standarduser\\AppData\\Local\\Temp\\pip-install-oojul98x\\pyfarmhash\\setup.py'"'"'; __file__='"'"'C:\\Users\\standarduser\\AppData\\Local\\Temp\\pip-install-oojul98x\\pyfarmhash\\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\standarduser\AppData\Local\Temp\pip-record-cp02n1i_\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\standarduser\code\isee\isee-backend\venv\include\site\python3.8\pyfarmhash' Check the logs for full command output.
Please help,


RE: "pip install -e ." returns : ERROR: Command errored out with exit status 1 - stranac - Jun-09-2020

The error is pretty explicit, Microsoft Visual C++ 14.0 is required for the installation.
You should read through the install instructions for pyfarmhash at https://pypi.org/project/pyfarmhash/


RE: "pip install -e ." returns : ERROR: Command errored out with exit status 1 - mostafaPython - Jun-09-2020

Thanks stranac, it works but now when I pserve development.ini --reload I have the error :

Error:
pserve development.ini --reload Starting monitor for PID 7988. Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\hupper\ipc.py", line 319, in spawn_main func(**kwargs) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\hupper\worker.py", line 252, in worker_main func(*spec_args, **spec_kwargs) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\pyramid\scripts\pserve.py", line 34, in main return command.run() File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\pyramid\scripts\pserve.py", line 275, in run app = loader.get_wsgi_app(app_name, config_vars) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\plaster_pastedeploy\__init__.py", line 125, in get_wsgi_app return loadapp( File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\paste\deploy\loadwsgi.py", line 253, in loadapp return loadobj(APP, uri, name=name, **kw) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\paste\deploy\loadwsgi.py", line 278, in loadobj return context.create() File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\paste\deploy\loadwsgi.py", line 715, in create return self.object_type.invoke(self) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\paste\deploy\loadwsgi.py", line 152, in invoke return fix_call(context.object, context.global_conf, **context.local_conf) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\paste\deploy\util.py", line 55, in fix_call val = callable(*args, **kw) File "c:\users\standarduser\code\isee\isee-backend\isee-backend\src\isee_backend\__init__.py", line 37, in main config = Configurator(settings=settings) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\pyramid\config\__init__.py", line 316, in __init__ self.setup_registry( File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\pyramid\config\__init__.py", line 452, in setup_registry self.include(inc) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\pyramid\config\__init__.py", line 642, in include c = self.maybe_dotted(callable) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\pyramid\config\__init__.py", line 749, in maybe_dotted return self.name_resolver.maybe_resolve(dotted) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\pyramid\path.py", line 335, in maybe_resolve return self._resolve(dotted, package) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\pyramid\path.py", line 342, in _resolve return self._zope_dottedname_style(dotted, package) File "c:\users\standarduser\code\isee\isee-backend\lib\site-packages\pyramid\path.py", line 391, in _zope_dottedname_style found = __import__(used) ModuleNotFoundError: No module named 'pyramid_debugtoolbar' Press ENTER or change a file to reload.
How to install 'pyramid_debugtoolbar' ?


RE: "pip install -e ." returns : ERROR: Command errored out with exit status 1 - snippsat - Jun-09-2020

(Jun-09-2020, 08:31 AM)mostafaPython Wrote: How to install 'pyramid_debugtoolbar' ?
pyramid_debugtoolbar
pip install pyramid_debugtoolbar