I am having some problems installing lxml 3.6.4 in python 3.6 64bit using Pycharm and PIP.
pip install lxml==3.6.4
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **
When installing libxml
pip install libxml2-dev
I get the following error:
Collecting libxml2-dev
Could not find a version that satisfies the requirement libxml2-dev (from versions: )
No matching distribution found for libxml2-dev
When running libxslt
pip install libxslt
I get this error
Collecting libxslt
Could not find a version that satisfies the requirement libxslt (from versions: )
No matching distribution found for libxslt
The ultimate goal is to install pyiso on Pycharm.
My specs - Windows 7 - 64
Python 3.6
On Linux, with the typo corrected, #pguardiario's comment above fixed this for me.
sudo apt-get install libxml2-dev libxslt-dev
Then:
conda install lxml
Or:
pip install lxml
Related
I tried using the commands below and these are the errors I got:
(1) sudo apt-get install python3-tk:
Error : Package python3-tk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
(2) python3.8 -m pip install tkinter:
Error : Could not find a version that satisfies the requirement tkinter (from versions: )
No matching distribution found for tkinter
(3) python3.8 -m pip install python3-tk:
Error : Could not find a version that satisfies the requirement python3-tk (from versions: )
No matching distribution found for python3-tk
If you are using windows put this on your CMD:
pip install tkinter
If it doesn't work, try:
pip install tk
For Mac or Linux:
apt-get install python-tk
Make sure you have python and pip installed. You can check it in the following way:
For python:
python --version
For pip:
pip -V
when running sls deploy, I'm getting this error. I tried checking my Ubuntu version and its package details. Everything seems to be fine.I have Ubuntu 20.04 and python 3.8.5 installed on my system.Can someone help me on this?
update apt and install brlapi
sudo apt update
sudo apt install python3-brlapi
run pip list to check if its installed
pip list
anti#Datakriya:~$ pip list
Package Version
---------------------- --------------------
apturl 0.5.2
attrs 19.3.0
Automat 0.8.0
awscli 1.19.15
bcrypt 3.1.7
blinker 1.4
boto3 1.17.2
botocore 1.20.15
Brlapi 0.7.0
My problem is that when I try to install a product that requires python >= 3.7, the installer fails, saying that it could not find the required python version, even though I do have python 3.8 installed.
I'm running Ubuntu for Windows 10 (the MS-store product.)
It comes with python 3.6 installed.
From a clean ubuntu install, I
sudo apt update
sudo apt install python3.8
sudo apt install python3-pip
At this point the command "python" is not mapped (not available), but I can run "python3" to get python3.6 or "python3.8" to get that version.
pip3 reports that it is using python 3.6.
pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
So it appears that pip is not recognizing the python 3.8 that I have.
When I attempt my product install, it fails, indicating that
sudo pip3 install --verbose (mypackage name)
(... various messages...)
(requires-python:>=3.7) is incompatible with the pythonversion in use. Acceptable python versions are:>=3.7
Could not find a version that satisfies the requirement cbordplatform (from versions: )
No matching distribution found for (my package name)
How can I get pip3 to recognize my python3.8?
If you want to make sure that pip is using the correct version of Python, call it with the specific Python like this:
python3.8 -m pip ...
OS: Debian GNU/Linux v9
System: Python 3.4.2
Ran command: sudo apt-get install build-essential python3-dev python3-lxml python3-pip python3-setuptools python3-wheel python3-lxml libssl-dev libffi-dev
I can do the following: python3 then import lxml
And it works! :)
I make a virtual environment, pip3 install some stuff, and type pip3 list
Package Version
--------------- -------
asn1crypto 0.24.0
cffi 1.12.2
cryptography 2.6.1
pip 19.0.3
pycparser 2.19
python-dateutil 2.8.0
pytz 2018.9
setuptools 40.8.0
six 1.12.0
Then I type: pip3 install lxml and get this:
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInithmyjgqp8.c -o tmp/xmlXPathInithmyjgqp8.o
/tmp/xmlXPathInithmyjgqp8.c:1:26: fatal error: libxml/xpath.h: No such file or directory
#include "libxml/xpath.h"
^
compilation terminated.
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
So it seems lxml can install on system, but not in a virtual environment. What am I doing wrong, and why is this?
I have been through a couple of documentations involving FreeTDS, Wheel, git and github but nothing was working on my Windows 10 PC with Python 3.6 but I need to install it. I'm working on a project and I'm most comfortable with mssql which is already installed in my pc.
this seems to work from
export PYMSSQL_BUILD_WITH_BUNDLED_FREETDS=1
pip install pymssql
Remember to install FreeTDS first.
Ubuntu/Debian:
sudo apt-get install freetds-dev
Mac OS X with Homebrew:
brew install freetds
Finally:
pip install pymssql
As the site pymssql_documentation page states that the module is deprecated,
we can use pip install "pymssql<3.0". It works on python 3.0 and above.
I think they should change it in the main copy area as well. as of 12/17/2019 it is still showing pip install pymssql, which has been updated on Nov 16 2019.
Just use the newest build of pymssql from gitub:
pip3 install git+https://github.com/pymssql/pymssql
Also works for python2
pip install git+https://github.com/pymssql/pymssql
UPDATE:
For macOS Big Sur Apple M1 chip processor:
You will need to install Rosetta2 emulator for the new ARM silicon (M1 chip). I just installed Rosetta2 via terminal using:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
Homebrew for ARM M1 chip:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Homebrew for M1 ARM command to install packages: arch -x86_64 brew install <package>. It is necessary to install FreeTDS before installing the pymssql.
arch -x86_64 brew install freetds
Finally:
pip install pymssql
output:
Collecting pymssql
Using cached pymssql-2.1.5.tar.gz (167 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Building wheels for collected packages: pymssql
Building wheel for pymssql (PEP 517) ... done
Created wheel for pymssql: filename=pymssql-2.1.5-cp39-cp39-macosx_10_9_x86_64.whl size=287029
.
.
.
Successfully built pymssql
Installing collected packages: pymssql
Successfully installed pymssql-2.1.5