Can't install lxml with 32-bit python 2.7, on CentOS - python

I'm developing with Python on CentOS. Needed Python 2.7 for a certain project. Didn't want to mess with the existing Python 2.6 (64-bit) installation, so installed Python 2.7 (32-bit). Haven't had a problem up until now.
Now I need a new library: lxml. It's actually already installed in the default 2.6 installation, but I need it for Python 2.7. None of the existing installation instruction seem to work. Specifically, I can't use a package manager (for CentOS it's yum), because it is only updating things for the default 2.6 installation. And again, everything from yum is already complete because Python 2.6 already has lxml installed.
If I type in "pip install lxml" I get a ton of error messages but finally it says, "Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?"
Okay, fine. So if I type in "STATIC_DEPS=true pip install lxml", it just times out and fails to download the prerequisites.
Any solution, especially sticking just to pip?

Related

pycurl installation issue on windows using pip and easy_install

Ive been trying for a long time different commands but i always kept getting
Please SPecify --curl....
I tried installing pycurl in a terminal, but it was not working
Pycurl installers can directly be downloaded from from https://dl.bintray.com/pycurl/pycurl/ for your respective Python version
What's the python version you are using? PycURL is only supported for specific versions.
Python 2.7 or 3.4 through 3.6.
Other Python versions won't be able to install PycURL via pip or easy_install , you'll have to manually compile it.

Getting errors while installing pip package using command prompt

I am a beginner for using python (3.7.4 version with pip 19.0.3 ), but I have got an issue with installing pip in python. I tried every way to install pip package after lots of searching on google (I have already set "add python 3.7 to patch", I also checked old stack overflow questions related to this and I tried to install get-pip.py using cmd etc., but I got the same error every time while installing pip using command prompt. ("could not find a version that satisfies the requirement python-docx (from version:) No matching distribution found for python-docx". Another problem is pycharm's site-package folder shows in red color.(pycharm version 9.2.1).also there are no modules in site package and cant be imported any well known modules from it.I am using windows 10 home edition.Does anyone have another way to tackle this?
As you can see on the pypi page:
Programming Languages:
Python
Python :: 2
Python :: 2.6
Python :: 2.7
Python :: 3
Python :: 3.3
Python :: 3.4
And in the python-docx documentation:
Dependencies
Python 2.6, 2.7, 3.3, or 3.4
Your python version (3.7) is not supported by the module you are trying to install.
You should always check these kind of pages for compatibility when you have trouble installing packages

How to downgrade to Python 3.4 from 3.5

I want to install kivy (link here) to use for a project, however, when trying to use pip to install the packages it is dependent upon, I get the following error:
Could not find a version that satisfies the requirement kivy.deps.sdl2 (from versions: )
No matching distribution found for kivy.deps.sdl2
Further reading on kivy's website revealed that these libraries do not support Python 3.5 on windows 10 because of some kind of graphical bug. The website says you need python 3.4 in order to be able to install it.
Which brings the question: How do I install python 3.4 when I already have python 3.5?
If you have an Anaconda installation you can just type:
conda install python=3.4
And it installs 3.4, to re-install 3.5, it's
conda install python=3.5
It works in under a minute.
Uninstall Python 3.5 by going to control panel, uninstall a program, and then look for Python 3.5, click on it and press uninstall. After that download Python 3.4. I don't know any other ways but I think that should work.
I was able to install Python 3.4 in a separate directory and then just change the default interpreter in PyCharm to use the new directory containing 3.4 instead.

LXML for windows 7 (For scrapy)

I am trying to install lxml fro windows 7 from exe given at https://pypi.python.org/pypi/lxml/3.3.5#downloads. I am getting this error saying python 2.7 is missing in registry. I have tried checking in the registry and its very much there. What should I do now?
Make sure you are using the right version of lxml for the version of Pythonyou have installed. For example, for Python 2.7 32-bit, you need to install lxml-3.3.5.win32-py2.7.exe. If you have Python 2.7 64-bit, then you'll need to install lxml-3.3.5.win-amd64-py2.7.exe.
If that doesn't work, reinstall Python as it probably isn't installed correctly.

Python3.3 can't find libpython3.3m.so in linux (pip-3.3)

I'm using ubuntu 12.10 with default python3.2. However I downloaded python 3.3 as its much more polished. Of course, since then I have a nightmare with installing modules for 3.3, as python3 packages from synaptic install to 3.2 dir. So, I installed pip using python 3.3. Now I have pip-3.3 command, great. But, when I tried "sudo pip-3.3 install PySide" I quickly got an error: "error: Failed to locate the Python library /usr/lib/libpython3.3m.so". What's more, when I run "sudo pip install PySide" (command for 2.7), it builded and installed and runs flawlessy. Pyvenv and virtualenv both fail too. But I wan't to do it non-env way,just install pyside to global 3.3 lib dir.
So how can I install that PySide to python 3.3? I just can't get it to work... It looks like I will have to stick with default ubuntu python 3 version (this one runs great, everything works both from pip and synaptic), but I like to use newest python as it gets better and better with every release.
Btw, if that matters I also got following warning before that error:
"package init file 'PySide/init.py' not found (or not a regular file)" and
"package init file 'pysideuic/init.py' not found (or not a regular file)"
Edit: I installed full python3.3 from synaptic, including pythoh3.3-dev, debug, lib etc. Everything.
And that dynamic python 3.3 lib exist in /usr/lib/x86_64-linux-gnu/libpython3.3m.so, maybe just python3.3 package for ubuntu is poor and installs it in wrong direction/doesn't do any symlinks tricks?
Please try this answer installing from source (PySide). Download pyside sources and install from source, follow the instructions on the link.

Categories

Resources