How can I install lxml 3.5.0 in python 3.6 on windows 7? - lxml

How can I install lxml 3.5.0 in python 3.6 on windows 7?
I want to fetch old tweets from twitter using twitter streaming API, and for that I went through https://github.com/Jefferson-Henrique/GetOldTweets-python.
In that it has suggested to install lxml 3.5.0 and pyquery 1.2.0. Though pyquery was installed successfully, installation of lxml showed error.So,from where can I download lxml 3.5.0 for python 3.6?

lxml 3.5.0 is available till python version 3.4 - check this https://pypi.python.org/pypi/lxml/3.5.0
If you want to install lxml 3.8.0 it's available for python 3.6 https://pypi.python.org/pypi/lxml/3.5.0
Download the whl for the OS that you are working on and use pip install.

Related

Installing tensorflow extended python 3 on windows

I tried to pip install tfx==0.13.0 on windows 10 machine and I get this error has anyone been able to pip install tfx==0.13.0
Could not find a version that satisfies the requirement ml-metadata<0.14,>=0.13.2 (from tfx==0.13.0) (from versions: 0.12.0.dev0, 0.13.0.dev0, 0.13.1.dev0) No matching distribution found for ml-metadata<0.14,>=0.13.2 (from tfx==0.13.0)
As suggested by Tensorflow Support in comments TFX does not support windows as of now.
Curently it supports both Linux and MacOS only.
Latest stable tfx version is 0.25.0 and tested python versions are 3.6 and 3.7.

GDAL 2.3.1 is installed but the llinux terminal is using GDAL 2.2.2

I've installed GDAL 2.3.1 using pip on a ubuntu 16.04. The package is in the correct site-packages directory and yet when I run a python script, I receive this error:
Error 1: NUMPY driver was compiled against GDAL 2.3, but the current library
version is 2.2
When using 'gdal-config --version', the output shows '2.2.2'.
I want to know how to change the version of gdal that linux appears to be using from 2.2.2 to 2.3.1 but I have no idea how to do this.
Any help would be greatly appreciated!

TensorRT python package incompatibility with python 3.6

Installing TensorRT 4 from its tar file is the only available option if you installed CUDA using the run file. However, the tar file only includes python TensorRT wheel files for python 2.7 and 3.5. No python 3.6 wheel file provided.
I cannot force install the python 3.5 wheel file on my python 3.6 system:
$ pip install tensorrt-4.0.0.3-cp35-cp35m-linux_x86_64.whl
tensorrt-4.0.0.3-cp35-cp35m-linux_x86_64.whl is not a supported wheel on this platform.
Also, I cannot create a new python 3.5 virtualenv just to use TensorRT.
Is there a way to manually install this package on my python 3.6 platform by manually copying the files?
Yes, you can rename this file to tensorrt-4.0.0.3-cp36-cp36m-linux_x86_64.whl and try again.
It works.
Please use python version 3.5.5. I had same issue with python version 3.6. Latest version of tensorflow works with python 3.5. If you are using anaconda use conda shell to activate earlier python version. You can set environment to use earlier version of python.

Error installing library of Scrapy in PyCharm

I can install other packages, but can't install Scrapy. I get the following errors:
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'lxml.etree' extension
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
However, C++ is installed, which I installed numerous of times. I have x86 and 64 bit installations (not sure if it's 10.0) but I have 2013-2017 versions installed.
Please upgrade your pip by following command.
python -m pip install --upgrade pip
Then install Scrapy by following command.
pip install Scrapy
download latest twisted package and install with pip.
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
after that install scrapy
In my case, I found that pywin32 was not installed...
So I did
download the latest Twisted package from https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
You want to use the amd64 if you have Windows 64 (regardless if it's an Intel processor or not)
You can use any browser for the download and copy/paste the file into the project folder of your current pycharm project.
Then in pycharm type this:
pip install Twisted-20.3.0-cp39-cp39-win_amd64.whl
(assuming that your package was Twisted-20.3.0-cp39-cp39-win_amd64.whl)
then proceed with:
pip install Scrapy

Tensorflow Wheel Install not Supported

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl
In Anaconda3, Im trying to install the wheel but it is not working. On Windows. Using Python 3.6. There isnt a 3.6 wheel. I get this error:
tensorflow-0.12.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
Use an alternative tensorflow wheel for Python 3.6:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.2.0rc2-cp36-cp36m-win_amd64.whl
UPDATE: TensorFlow from version 1.2 forward officially supports Python 3.6
There is no wheel for Python 3.6 for currently not being supported on Windows yet.
As you can see here, Python 3.6 support on Windows is a work in progress.
The only alternative to use TensorFlow on Windows with Python 3.6 is to build it from source.
I also encountered the same problem.
Before they update TensorFlow.
You can try to download the historical version of his 2016-9-27 on this website.
Just change your python version to 3.5 and then retry installing tensorflow. Tensorflow is only compatible with Python 3.5
conda install python=3.5
and then
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl