Why does installing Nokogiri on Mac OS fail with libiconv is missing?

I've been trying to install Nokogiri on Mac OS 10.9.3 and whatever I try, the install fails in the end with the following error message: $ sudo gem install nokogiri --...

i have an error when executing "from lxml import etree" in the python command line after successfully installed lxml by pip

bash-3.2$ pip install lxml-2.3.5.tgz Unpacking ./lxml-2.3.5.tgz Running setup.py egg_info for package from file:///Users/apple/workspace/pythonhome/misc/lxml-2.3.5.tgz ...

pip is not able to install packages correctly: Permission denied error

I am trying to install lxml to install scrapy on my Mac (v 10.9.4) ╭─[email protected] ~ ╰─➤ pip install lxml Downloading/unpacking lxml Downloading...

Nokogiri installation failes on Elastic Beanstalk

Im trying to deploy my Rails application with AWS Elastic Beanstalk. I've created the instance and all but when I try to deploy the app using aws.push I get the following errors in the event...

How to install lxml on Windows

I'm trying to install lmxl on my Windows 8.1 laptop with Python 3.4 and failing miserably. First off, I tried the simple and obvious solution: pip install lxml. However, this didn't work. Here's...

lxml will never finish building on ubuntu

I am running ubuntu 14.04 LTS and python 2.7.5 on a vwmare. When I run: sudo pip install lxml I get: Collecting lxml Using cached lxml-3.4.4.tar.gz Building wheels for collected packages:...

Error while installing Nokogiri (1.6.7) on El Capitan

One of my developers have updated Nokogiri, and when pulling the updated Gemfile my bundle install fails. ➜ my-project git:(master) bundle install Fetching source index from...

How to fix error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I'm trying to install odoo on a fresh installation of Linux on a VirtualBox machine. I have entered in the commands found here as is: Odoo Development Read the Docs. The following command is what...

lxml is not found within Beautiful Soup

I am trying to use beautifulsoup4 to parse a series of webpages written in XHTML. I am assuming that for best results, I should pair with an xml parser, and the only one supported by beautifulsoup...

Access Host redis database from docker conatiner

I am trying to connect to host redis database through my docker conatiner. In my dockerfile , I have redis as a requirement, which gets installed [pip install redis] and image is build using that...

Issues with Python pandas: read_html and python3-lxml installation

I'm trying to run the following code, to no avail. To my knowledge, there aren't any syntax errors. import quandl import pandas as pd fifty_states...

Metasploit Update: Error In Bundle Install ( nokogiri 1.6.8 )

Metasploit was working fine until this morning when I updated it with msfupdate, then all went to heck. Typing msfconsole Now gives me this error: Could not find nokogiri-1.6.8 in any of the...

"The headers or library files could not be found for jpeg" installing Pillow on Alpine Linux

I'm trying to run Python's Scrapy in a Docker container based on python:alpine. It was working before, but now I'd like to use Scrapy's Image Pipeline which requires me to install Pillow. As a...

Installing feather-format downgrades several packages

I ran df.to_feather method in pandas 0.20.3, and got an error message advising me to run: conda install feather-format -c conda-forge Running that warns that it will change many python packages,...

jupyter notebook ipython widgets display as text

A colleague (and myself) are trying to write some python scripts to do some common calculation which will also need to be used by our other colleagues. In order to make these scripts easy to use...

How run composer install from dockerfile in php container

Good day I have php container which seting up in Dockerfile I am trying to run composer install with this command WORKDIR '/app' RUN curl -sS https://getcomposer.org/installer | \ php...

WEBP support not installed error with Pillow included in Anaconda

I have written a small code to open webp image in the Anaconda prompt. from PIL import Image im = Image.open('test.webp') It causes the following...

"AssertionError: Torch not compiled with CUDA enabled" in spite upgrading to CUDA version

I figured out this is a popular question, but still I couldn't find a solution for that. I'm trying to run a simple repo Here which uses PyTorch. Although I just upgraded my Pytorch to the latest...

Building wheel for lxml (setup.py) friezes while installing lxml on termux

I was trying to install lxml on python 3.7.4 on Termux on my phone: $ pip install lxml Collecting lxml Using cached...

"Verifying transaction: failed" Error in updating anaconda form anaconda prompt

I had been updating anaconda form "anaconda Prompt", i got following error i could not resolve the error can anyone please help me to resolve it Downloading and Extracting Packages libxslt-1.1.33 ...

Error 'html5lib not found' when using pandas.read_html() function in conda env

Current code: import requests import pandas as pd url = 'https://docs.anaconda.com/anaconda/user-guide/getting-started/' html = requests.get(url, verify=False).content df_list =...

virtualenv: pre-installed with packages on creating virtual environment

I created a virtual environment using command virtualenv env on my terminal. On using pip freeze > requirements.txt after activating the virtual environment, I was a bunch of packages...

Why does `conda list cudnn` have no output after `conda install pytorch torchvision cudatoolkit=10.2 -c pytorch` installation

*Please feel free to vote "Reopen" at the bottom of this question. The reason is that I have marked this as a duplicate although the answers there are not clear enough for this question.* As soon...

Failed to install llvm-lite with a Dockerfile

The scenario below is blocking me to have progressed in dockerize my Flask App, anybody has any clue about it? some important info below. I already see about setting the LLVM_CONFIG file to the...

Kubernetes/Docker error after building on Macbook M1 - standard_init_linux.go:211: exec user process caused “exec format error”

I'm getting the subject error when deploying my application to Kubernetes on Google Cloud. From digging through this post -...

Perl LibXLST failing on Mac OS Big Sur 11.4

I'm having trouble with a Perl application that fails with an LibXSLT-related error on Mac OS Big Sur 11.4 on multiple computers (all Intel Macs) - it worked correctly before the Mac OS upgrade,...

Bokeh/panel won't render in-line with Jupyter Lab

I'm trying to visualize Bokeh plots and panels with a Bokeh backend in a notebook in JupyterLab. Things were running fine until I updated. Current packages and versions are below I have tried the...

django rest Error - AttributeError: module 'collections' has no attribute 'MutableMapping'

I'm build Django app, and it's work fine on my machine, but when I run inside docker container it's rest framework keep crashing, but when I comment any connection with rest framework it's work...

Running into an error when trying to pip install python-docx

I just did a fresh install of windows to clean up my computer, moved everything over to my D drive and installed Python through Windows Store (somehow it defaulted to my C drive, so I left it...

Python: matplotlib.pyplot.show() is not showing the plot

import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.show() input("Press enter to continue...") If I run the script above within VS Code, or even within command prompt, the plot canvas only...