Why is ‘pip3 install netifaces’ failing on Debian 10 Buster?
HTMLParser().unescape was removed in Python 3.9. Compare the code in Python 3.8 vs Python 3.9. The error seems to be a bug in setuptools. Try to upgrade setuptools. Or use Python 3.8.
HTMLParser().unescape was removed in Python 3.9. Compare the code in Python 3.8 vs Python 3.9. The error seems to be a bug in setuptools. Try to upgrade setuptools. Or use Python 3.8.
This is actually not specific to pip, but really any shell command from the iPython notebook. You’ll notice other shell commands also work (from the docs): In[1]: !pwd /User/home/ Change directory: In[1]: !cd /var/etc This is simply shorthand that the good folks at Jupyter have included. See Shell Assignment in the docs for more of … Read more
I followed the below steps for python3.6 installation in ubuntu 14.04 and virtualenv pip installs works fine. Python 3.6 Installation: sudo apt-get install python3-dev libffi-dev libssl-dev wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz tar xvf Python-3.6.0.tgz cd Python-3.6.0 ./configure –enable-optimizations make -j8 sudo make altinstall python3.6 If seeing the following error — zipimport.ZipImportError: can’t decompress data; zlib not available make: … Read more
In your pip.conf, you will also have to add both of the index hosts as trusted, so would look something like this: [global] index-url = http://download.zope.org/simple trusted-host = download.zope.org pypi.org secondary.extra.host extra-index-url= http://pypi.org/simple http://secondary.extra.host/simple In this example, you have a primary index and two extra index urls and all hosts are trusted. If you don’t … Read more
You can use pip3 using the alias pip by adding alias to your .bashrc file. alias pip=pip3 or by adding a symlink named pip to your $PATH, which points to the pip3 binary. If there is no ~/.bashrc in your home directory on macOS, inputting alias pip=pip3 in your ~/.zprofile file has the same effect.
If the goal only is to list all the installed packages, pip list or conda list are the way to go. pip freeze, like conda list –export, is more for generating requirements files for your environment. For example, if you have created a package in your customized environment with certain dependencies, you can do conda … Read more
You can set ssl library path explicitly. LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysqlclient
At {virtualenv}/lib/python2.7/site-packages/ (if not using virtualenv then {system_dir}/lib/python2.7/dist-packages/) remove the egg file (e.g. distribute-0.6.34-py2.7.egg) if there is any from file easy-install.pth, remove the corresponding line (it should be a path to the source directory or of an egg file).
Instructions telling people to use sudo pip install are inherently wrong. If there is any tutorial out there which says you should use sudo pip then please file a bug against this package. The author is dis-educating the Python community, as time has proven sudo pip to be a broken practice. OSX El Capitan introduced … Read more