bosondata / chrome-prerender

Render JavaScript-rendered page as HTML/PDF/mhtml/png/jpeg using Headless Chrome
MIT License
165 stars 20 forks source link

Install fail on Centos 7 using pip #34

Closed olidietzel closed 6 years ago

olidietzel commented 6 years ago

Do i need to install python3 and/or something else?

[root@prerender ~]# pip install prerender Collecting prerender Using cached prerender-0.9.3.tar.gz Collecting websockets (from prerender) Using cached websockets-4.0.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-_SAdD7/websockets/setup.py", line 11, in with open(readme_file, encoding='utf-8') as f: TypeError: 'encoding' is an invalid keyword argument for this function

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_SAdD7/websockets/

olidietzel commented 6 years ago

Worked by installing python3 and pip3 following these howtos:

https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-centos-7

https://stackoverflow.com/questions/11268501/how-to-use-pip-with-python-3-x-alongside-python-2-x