Win10 scrapy install - scrapy

I have python install as well as c++ complier. When I run "pip install scrapy" from the command line it starts to install but I get a couple errors surrounding the libxml and libxslt.
error: 'xslt-config' is not recognized...
cannot open libxml/xmlversion.h no such file or directory
compile failed windows C++ for python failed with exit status 2
could not find function xmlCheckVersion
is libxml installed.....

Use this:
set STATICBUILD=true && pip install lxml
Find the documentation here

Related

"pip install models": Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

For a deep-learning project, I was trying to import the 'models' library. But it's not installed on my colab notebook. So, I tried pip install models to install the library but it shows error which is as on the screenshot. I've also read somewhere that the library is renamed as 'pymodels'. I've also tried it but still not working.
I would be thankful for any help you can provide.

Error when installing a python module in Linux

I am encoutering two kinds of issues while trying to install a package called Boltztrap2.
1) Trying to install Boltztrap2 using 'pip3'. However, when I punch in the command, the process goes smoothly for a while and then spits out an error :
BoltzTraP2/sphere/frontend.cpp:32:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
I did some troubleshooting and found out that it is just a path issue - I confirmed this by typing 'locate Python.h'. However, I don't get how to manually incorporate this change since the 'pip3' command that I use downloads the program and compiles it automatically. I don't seem to have access to change any scripts, or rather I do not know how to, since I'm kind of new to all this.
PS: I do not have sudo access.
2) Trying to install Boltztrap2 by manually compiling the python setup file: This seems to work fine until the system spits out an error saying:
Error:numpy is not installed.
PS: Again, I do not have sudo access.
I would be very glad if someone could help me install this package through either method. I just want to get the software to work. Thanks in advance for any assistance.
python3 -m pip install --upgrade pip
pip3 install numpy
Check if you can upgrade pip?
If that works then you can pip install numpy.

Control Charts in Python Error

I am trying to implement a Shewhart control chart on multiple variables, after looking up packages in Python to implement this I came across SPC and controlcharts. Both are failing to load when code :
pip install spc
pip install controlchart
both come with error code:
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\AppData\Local\Temp\pip-build-xdg2j1zr\spcchart\
All my packages are up to date and I am fearful the age of SPC/ ControlChart are preventing the installation. I am new to python and any help would be appreciated about what error code 1 indicates and where I can find control charts.
You can try this command
pip install python-controlchart
For the second command
There is another package
pip install pyspc

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

Error attempting to install scrapy using easy_install osx 10.8

(Newbie here) I've been attempting to install scrapy using easy_install, but get the following error:
Ben$ easy_install -U Scrapy
Searching for Scrapy
Reading http://pypi.python.org/simple/Scrapy/
Reading http://scrapy.org
Best match: Scrapy 0.14.4
Processing Scrapy-0.14.4-py2.7.egg
Scrapy 0.14.4 is already the active version in easy-install.pth
Installing scrapy script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Scrapy-0.14.4-py2.7.egg
Processing dependencies for Scrapy
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3.6
Downloading http://lxml.de/files/lxml-2.3.6.tgz
Processing lxml-2.3.6.tgz
Running lxml-2.3.6/setup.py -q bdist_egg --dist-dir /var/folders/j1/l3w7_q554b3fkk3xyw_998nc0000gn/T/easy_install-w5NqEl/lxml-2.3.6/egg-dist-tmp-6MyEeO
Building lxml version 2.3.6.
Building without Cython.
Using build configuration of libxslt 1.1.26
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
Any idea what I am missing here?
Thanks
Install GCC first; easiest way is via https://github.com/kennethreitz/osx-gcc-installer .
After installing GCC, run easy_install again.