top of page

Python's wheel Slowing You Down?


  ERROR: Command errored out with exit status 1:
   command: /home/user/work/build-static-site-generator-with-python-v1.0.0/pluralsight-projects-python-static-site-generator-5215412/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-y8i71nyw/PyYAML/setup.py'"'"'; __file__='"'"'/tmp/pip-install-y8i71nyw/PyYAML/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-1d7mphmb
       cwd: /tmp/pip-install-y8i71nyw/PyYAML/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ERROR: Failed building wheel for PyYAML
  Running setup.py clean for PyYAML
  Building wheel for termcolor (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/user/work/build-static-site-generator-with-python-v1.0.0/pluralsight-projects-python-static-site-generator-5215412/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-y8i71nyw/termcolor/setup.py'"'"'; __file__='"'"'/tmp/pip-install-y8i71nyw/termcolor/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-eo8lywq5
       cwd: /tmp/pip-install-y8i71nyw/termcolor/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for termcolor

The solution - thank you Divyessh Maheshwari :


In your virtual environment, first do pip install wheel and then try the pip install -r requirements.text and you'll be fine. Problem is that the wheel in the virtual environment may need to be massaged.


 
 
 

Recent Posts

See All
Leonardo Notarbartolo's Inspiration

After hearing about George Leslie in Ron Faridmann's "Decoding Greatness", Wikipedia says this : The most famous robbery that they pulled...

 
 
 

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2020 by Ananth Chellappa. Proudly created with Wix.com

bottom of page